Page 1 of 1

how to change my php/html contact form script

Posted: Fri Feb 27, 2009 7:49 pm
by geomatani
hi please help me wit my contact form.

I need page to reload in the same window and display thank you message, but I dont know how?

any feedback appreciated. please let me know and i will send you php code.

take a look here, http://e-lineinc.com/eline1.0/BET/oc/contacts.html
:?:
thanks

Re: how to change my php/html contact form script

Posted: Fri Feb 27, 2009 11:15 pm
by susrisha
1. you need to make the page to php
2. change the action from send_form_email.php to PHP_SELF
3. Place the code in send_form_email.php on the top of the page with the following conditions

Code: Select all

 
 
if(isset($_POST['first_name'])) //include all the other fields here
{
//send_form_email.php code here
 
}
else
{
   The present page code here..
}