|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||||
|
|||||
|
Help with PHP FORM - im a n00b.
Ok here's the deal i made a website for my brother. He owns his own nutritional supplements shop in our city. He decided to do like a catalog + web order to expand business. I made him a quick simple site to get started and decided to try something new.
I have NOT the slightest clue when it comes to PHP but wanted to use a FORM using PHP so i can send from web. Here is the page: www.total-nutrition1.com/contact.php If you look at that page i have set it up for the most part the way i want it... the way the forms are setup and the way it turns out when hitting send (new page opens saying Thank you...blah, blah blah...). My problem im having is when users are typing in the form and hitting submit the only thing i am getting in the email is the Name field (not filled out) and which radio button they checked... nothing else... can someone please help me... and look at my code... php Code:
Sorry if it's messy... Like i said above I KNOW NOTHING in PHP. This is what i've been able to do so far from just reading... and im stuck... |
|
#2
|
|||
|
|||
|
RE: Help with PHP FORM - im a n00b.
well from the look of your code, the only things you are including in the email are the name and radiobutton selection, and the reason the name is empty is because PHP is case sensitive and the form element name is "Name" and the post variable you are accessing is "name".(should be $_POST['Name']) If you want the rest of the information to appear, you need to add it to the $msg variable.
|
|
#3
|
|||
|
|||
|
RE: Help with PHP FORM - im a n00b.
Thank you for the input... changing the case sensitivity worked for the name field... now im trying to get the rest to output same with the textfield (comments) box.
Hmm... What kind of code/tag would i use for the rest... I tried copying the name code (like below) and changing the names but wouldnt show up once emailed. I tried using this line for the other fields - and just changing names: but for some reason it wont work... |
|
#4
|
|||
|
|||
|
RE: Help with PHP FORM - im a n00b.
once again case sensetivity is the issue, the form field for address is named "Address", so the post variable must look like this
$_POST['Address'] |
|
#5
|
|||
|
|||
|
RE: Help with PHP FORM - im a n00b.
Here is the new code mixed with the HTML form... please let me know what im doing wrong... I am still having trouble... My first problem is when receiving the email it takes superrrrrrr long. (delayed about 3-4hrs.) second problem it still will not output the correct information in the email... still comes in blank. Here is the TEST page here: http://www.total-nutrition1.com/contact2.php php Code:
|