View Single Post
  #1 (permalink)  
Old 11-03-09, 09:06 AM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
newbie question re submission form

I am experienced with html but never used php. I am making a site for a cat shelter and they have a very long adoption application form. Where the site is hosted has php4 and php5. I tried to set up the form for php but obviously don't know what I'm doing as it doesn't work. In the <body> before the form I have

<form method="post" action="sendmail.php">

and after the form

<input type="submit"></form>

In the file sendmail.php I have

<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "cbrundage@nc.rr.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.purrparters.com/thankyou.html" );
?>

The form itself is coded in the usual html way. Any help greatly appreciated by me - and by the cats!!
Christina
Reply With Quote