Ok
What you have created so far is a form which checks a security code before
you can submit the form for the form to be sent anywhere some script is
needed to process the the form and send it to your email the code at the top
of your page checks to see if the code has been entered correctly. if it has
then you can priceed to send the form to email
Where it says "// Insert you code for processing the form here, e.g
emailing the submission, entering it into a database." near the top of the
page is where you add the processing code
http://www.tele-pro.co.uk/scripts/contact_form/
Use this form generator to write the processing script with your email
address and the field names of your form. make sure the case and spelling
are exactly the same make sure the php is selected then click finnish two
boxes of code will be generated, ignore the form script, cut and paste the
processing script code into the script where it says below remember that
someproviders require you to put php script into a folder called a cgi-bin
check with them
Paul M
If the code is correct then this script executes
if( isset($_POST['submit'])) {
if( $_SESSION['security_code'] == $_POST['security_code'] &&
!empty($_SESSION['security_code'] ) ) {
// Insert you code for processing the form here, e.g emailing the
submission, entering it into a database.
place the script to send the email here
echo 'Thank you. Your message said "'.$_POST['message'].'"';
unset($_SESSION['security_code']);
If the code is not correct then the above script is egnored and this error
message is executed
} else {
// Insert your code for showing an error message here
echo 'Sorry, you have provided an invalid security code';
http://www.tele-pro.co.uk/scripts/contact_form/