A Quick Question about a Form.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
greg_elite
Forum Newbie
Posts: 1
Joined: Wed Dec 29, 2010 6:32 pm

A Quick Question about a Form.

Post 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?
anantha
Forum Commoner
Posts: 59
Joined: Thu Dec 23, 2010 7:38 pm

Re: A Quick Question about a Form.

Post 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...
Post Reply