Current location: Hot Scripts Forums » Programming Languages » PHP » newbie question re submission form


newbie question re submission form

Reply
  #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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-03-09, 11:37 AM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Disregard

I found I cannot use a php script but must use cgi.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-03-09, 11:40 AM
carters-site's Avatar
carters-site carters-site is offline
Wannabe Coder
 
Join Date: Sep 2009
Location: Moline, IL
Posts: 100
Thanks: 2
Thanked 1 Time in 1 Post
CGI?

oh gross people still use that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-03-09, 04:07 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Check Google. You should be able to find a service that will do a nice job in a cost effective and secure manner.

http://www.google.com/search?q=free+...k+form+service
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Space Above Form xavier039 CSS 1 07-13-09 11:52 PM
ajax checking and onsubmit issue follower JavaScript 4 10-12-08 04:45 PM
PHP Newbie needs help with confirmation message after form submission rmd PHP 16 06-07-06 11:28 AM
Form submission question. pixelluxe PHP 2 05-24-05 10:15 PM
Limit the form submission according to time bionicsamir PHP 7 05-10-04 12:10 AM


All times are GMT -5. The time now is 10:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.