Thread: please help
View Single Post
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: please help

 
0
  #9
Dec 1st, 2008
The name the element has in the form goes inside the brackets.
So if your form has
  1. <input name="name" type="text" id="name" tabindex="16" />
After the form is submitted, PHP can assign the value posted to the variable. Here we assign the value of the textbox above to the variable $nameField:
  1. $nameField=$_POST['name'];
Now if you want to use that variable in your email, you'll need to use the variable just defined.
  1. $body = <<<EOD
  2. <br><hr><br>
  3. name: $nameField <br>

Get it??
Lost time is never found again.
- Benjamin Franklin
Reply With Quote