0 down vote favorite
I currently have this page I am working on: http://www.webauthorsgroup.com/new/template/index3.html
In the lower right corner is a form (php), but I can’t “echo” a text message after it has been submitted (for whatever reason).
My form is:
=================================================
[php]
Name
E-mail
Phone
Question/Comment
=================================================
I currently have this page I am working on: http://www.webauthorsgroup.com/new/template/index3.html
In the lower right corner is a form (php), but I can’t “echo” a text message after it has been submitted (for whatever reason).
My form is:
[php]
Name
E-mail
Phone
Question/Comment
=========================================================
the process.php is:
[php]<?php
if(isset($_POST[‘submit’]))
{
// Get Data
$name = strip_tags($_POST[‘name’]);
$email = strip_tags($_POST[‘email’]);
$phone = strip_tags($_POST[‘phone’]);
$url = strip_tags($_POST[‘url’]);
$message = strip_tags($_POST[‘message’]);
echo “Thank You!”;
}
// Send Message
mail( "[email protected]", “Inquiry From WebAuthorsGroup”,
“Name: $name\nEmail: $email\nPhone: $phone\nWebsite: $url\nMessage: $message\n”,
“From: Forms [email protected]” );
?>
[/php]
I need the “message sent” text echoed in the same div after submitting the form and I don’t want to convert my index page to index.php
Any help would be great!