Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mike Teezie

macrumors 68020
Original poster
Nov 20, 2002
2,205
1
I want to add a questionnaire page to my website for clients to fill out, so I can get a little preemptive information about them.

This is honestly a little bit above my head I think, so do you guys know of anybody that offers forms for installation on a website?
 
Here's the PHP for my sendform.php file:

<?php
$useremail = "";
$email="name@yourdomain.com";
$body="Discover Caves Feedback:\n\n";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$body.="$key ==> $val\n";
if ($key == "Email_Address") {
$useremail = $val;
}
}
mail($email,"Discover Caves Feedback",$body, "From: name@yourdomain.com");
?>

<?php

echo "<script language=\"JavaScript\"> ";
echo "location='/index.htm';";
echo "</script>";

?>

---------------------

Here's the form page:
http://discovercaves.com/contact.htm

Go there and view source to see how to call PHP.

-T
 
It's also a good idea to look into "image verification" for your form. Without it, you form can be hijacked to send spam to thousands of others without your knowledge. THis has happened to me, and is quite common.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.