RE: [PHP] php mail form with predefined subject

2001-07-12 Thread scott [gts]

link to the mail form like this:

mailform.php?subject=Requesting+information+on

and in the mailform, have a subject field something
like this:

INPUT TYPE=TEXT NAME=subject VALUE=?= $subject ?


 -Original Message-
 From: Ed Peddycoart [mailto:[EMAIL PROTECTED]]
 Subject: [PHP] php mail form with predefined subject
 
 
 I am in need of a mail form script which has the subject line filled in for
 the userHere's what I mean
 
 Let's say I have a webpage.
 
 On the web page is a picture of a truck, maybe a 1999 Ford F150.
 
 If the user clicks the pic, he/she is taken to a brief description of the
 truck.
 
 On the description page is a button which says email for more info.
 
 If the user clicks this button he/she is taken to a page which is a mail
 form, with the subject being something like, Requesting information on 1999
 Ford F150
 
 I guess what you could say, in a way, is that I want to have a mail form,
 with the subject set according to where the user is coming from...sort of, I
 guess...
 
 Can anyone point me to some example code on how to do this?  Or an archive
 of php mailform scripts?
 
 Thanks,
 Ed
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php mail form with predefined subject

2001-07-11 Thread David Robley

On Thu, 12 Jul 2001 09:17, Ed Peddycoart wrote:
 I am in need of a mail form script which has the subject line filled in
 for the userHere's what I mean

 Let's say I have a webpage.

 On the web page is a picture of a truck, maybe a 1999 Ford F150.

 If the user clicks the pic, he/she is taken to a brief description of
 the truck.

 On the description page is a button which says email for more info.

 If the user clicks this button he/she is taken to a page which is a
 mail form, with the subject being something like, Requesting
 information on 1999 Ford F150

 I guess what you could say, in a way, is that I want to have a mail
 form, with the subject set according to where the user is coming
 from...sort of, I guess...

 Can anyone point me to some example code on how to do this?  Or an
 archive of php mailform scripts?

 Thanks,
 Ed

Sounds like you are using a form to allow a submit button - so you could 
add a hidden field containing the subject?

FORM ACTION=mail.php METHOD=POST
INPUT TYPE=hidden NAME=subject VALUE=Your inquiry about a Kenworth
INPUT TYPE=submit NAME=summit VALUE=email for more info
/FORM

And no PHP to be seen :-)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Junk: stuff we throw away. Stuff: junk we keep.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]