how to change my php/html contact form script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
geomatani
Forum Newbie
Posts: 1
Joined: Fri Feb 27, 2009 7:36 pm

how to change my php/html contact form script

Post 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
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

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

Post 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..
}
 
 
Post Reply