This content has been marked as final. Show 4 replies
OK so i fixed all the PHP errors, I think, it still isn't working though.
Do I have to upload the page to the server for the form data to be sent?
Here is the code now according to the reference you gave me
$message="Text Field Entry:".$E-Mail;
$message="Text Field Entry:".$ContactTextArea;
mail($to, $subject, $message);
Is this correct? $to=e-mail address, $subject=the text field "subject
$message= the text field e-mail and contact text area, and the numbers that follow the checkbox code, are the names of the checkboxes.
Please point out anything incorrect in the PHP code, I'm almost 100% that the HTML form code is correct, as you can see PHP is not my language :) Thanks
I visited your website, as was about to contact Jasper Thayer from his website, then I realized that you were Jasper Thayer :D
Your form code is incorrect. There are some areas that are not formatted properly and some areas that are just written wrong! For instance your checkbox input form fields do not have a value so when someone checks it and sends you the form you would not receive any information even if your php code was correct. You need the action of your form to be sent to your_php_script.php which should include the php script along with a confirmation message that the form was sent. The php code you have is not properly concatenated please look at the code I've provided and retry. You need to be specific about quotations, periods, etc. the name on your form fields has to be the same as the $variable in php code. You have areas all over your form code that do not belong for instance this.
My recommendation is to look at the code I've provided, study it, grasp the concept. Best of luck to you.