Jonathan
07-30-2003, 12:33 PM
How come the forms on this site dont work?
http://www.crosspoint.org/
http://www.crosspoint.org/
|
Click to See Complete Forum and Search --> : PHP - Forms Jonathan 07-30-2003, 12:33 PM How come the forms on this site dont work? http://www.crosspoint.org/ pyro 07-30-2003, 12:42 PM lol... More info, perhaps? :D You might want to take a look at the articles at http://www.webdevfaqs.com/php.php for a form handler, and an explination of what global variables are/do, as those are both common errors/needs. Jonathan 07-30-2003, 12:50 PM The form doesn't "return false;" and it doesn't mail the information pyro 07-30-2003, 01:01 PM Originally posted by Jonathan The form doesn't "return false;"Is this a javascript issue? As far as the form not mailing itself, we need to see the code you are using to mail it. Might I recommend http://www.webdevfaqs.com/php.php#mailer Jonathan 07-30-2003, 01:08 PM This is the PHP code: <?PHP $subject = "Registration"; $headers = "From: Form Mailer"; $forward = 1; $location = "thanks.html"; $addresses = array("webmaster@crosspoint.org","dvaughan@crosspoint.org","lhale@crosspoint.org"); $date = date ("l, F jS, Y"); $time = date ("h:i A"); $IP = $_SERVER['REMOTE_ADDR']; $msg = "This form was submitted on $date at $time.\n\n"; $msg = $IP . $msg foreach ($_POST as $key => $value) { $msg .= ucfirst ($key) ." : ". $value . "\n"; } foreach ($addresses as $email) { mail($email, $subject, $msg, $headers); } if ($forward == 1) { header ("Location:$location"); } else { echo ("Thank you for submitting our form."); } ?> pyro 07-30-2003, 01:22 PM Ah, yes. I gave you that code eariler... Try removing all the javascript and check if the PHP will work. I'm assuming you have all that code in searching.php and reserving.php? Jonathan 07-30-2003, 01:24 PM Yep pyro 07-30-2003, 01:30 PM What happened when your removed the javascript? Jonathan 07-30-2003, 01:31 PM I am doing that right now.. I will get back to you :) Jonathan 07-30-2003, 01:38 PM Nothing changed... only they go to the thanks.html page now.. i think .. pyro 07-30-2003, 01:42 PM Hmm... it might be a problem with the mail server. I seem to remember you had this working (though shakily) eariler on when I originally gave you this code? Jonathan 07-30-2003, 01:52 PM It was working... hold on... Maybe it hasn't kicked in yet. the upload webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |