View Single Post
 
Post PHP Mailform Problem ($_get...)
Reply
Posted 2002-09-01, 05:10 PM
can anyone help me with my PHP problem

here is the script for my mailform

--------------
<?php
if($_COOKIE[sentemail] > 2){
include("sorry.php");
} else{
if($_COOKIE[sentemail]) {
$num = 1;
} else {
$num = $_COOKIE[sentemail] + 1;
}

setcookie("sentemail", "$num", time()+600); //set the cookie

$email = "First Name:\t$firstname\n Last Name:\t$lastname\n Gender:\t$gender\n Age:\t$age\n
Province:\t$province\n City:\t$city\n Postal Code:\t$postal\n Email:\t$email\n Confirm Email:\t
$confirmemail\n Username:\t$username\n Password:\t$password\n Confirm Password:$confirmpassword\n
Password Hint:\t$passwordhint\n Xtreme Sports:\t$xtremesports\n Xtreme Level:\t$xtremelvl\n
Comment for Bio:\t$commentbio\n Feedback: \t $feedback\n\n IP:\t$REMOTE_ADDR\n\n";

$to = "[email protected]";
$subject = "Sign Up - CanadianXtreme";

$mailheaders = "From: $email<> \n";
$mailheaders = "Reply-To: $email\n\n";

mail($to, $subject, $email, $mailheaders);
include("thanksecho.php");
}
?>
--------------

the problem that i am having is that everytime someone submits the form. it comes to a page that lists all the form fields and says:

Undefined Variable ......

and so on..
Mike
--------------------------------------
CanadianXtreme Sports Club
www.CanadianXtreme.ca
--------------------------------------
Old
Profile PM WWW Search
Canadianxtreme is neither ape nor machine; has so far settled for the in-betweenCanadianxtreme is neither ape nor machine; has so far settled for the in-between
 
Canadianxtreme