Page 1 of 1

A Quick Question about a Form.

Posted: Wed Dec 29, 2010 6:40 pm
by greg_elite
Hi, I found this.
http://email.about.com/od/emailprogramm ... cation.htm
As you can see it states the $body and subject varibles with a string. If I wanted it to post what the users input said instead of that set string could I use

Code: Select all

$_GET['message']; and $_GET['subject];
If you name a html form with the php as the action, A textbox named to message and subject name to subject. like message="message" and subject="subject" would it adopt those varibles in place of the static text?

Re: A Quick Question about a Form.

Posted: Wed Dec 29, 2010 7:48 pm
by anantha
if use form method as post....then $_POST['message'] and $_POST['subject']...but if you use form method as get then it is as u described...default method for form is get...