The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I got this free form off the net and have been using for ages for people to submit cheats to me from my website, i have now been asked to make a form for a friend. They do not need to email box as people using the form may not have an email address. I have tried editing the form and cannot remove the code to stop it sayin "you have not completed email" and "the email address you have entered is not valid"
If you have anyway of helping me and gettin around this problem please can you, thanks
If you have anyway of helping me and gettin around this problem please can you, thanks
Thanks alot !!!
if (!ereg('^[-!#$%&\'*+\\.( space)/0-9=?A-Z^_`a-z{|}~]+'.
'@'.
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
echo "Your email, $email, is not valid. Please click here to fill in a proper email. Thank You.";
exit;
}
Remove this.
'@'.
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
echo "Your email, $email, is not valid. Please click here to fill in a proper email. Thank You.";
exit;
}
Remove this.
// CONFIGURATION
// Your name. e.g. $y_name = "Your Name";
$y_name = "Alex James";
// Your email. e.g. $y_email = "[email protected]";
$y_email = "[email protected]";
// Auto response option - yes or no. e.g. $autor = "yes";
$autor = "no";
/* Message for auto response mail. e.g. $autor_mail = "Thanks for subscribing to our newsletter."; If you don't want auto response ignore this */
$autor_mail = "Thank you for submitting the cheat to Alexj17.com, it will be checked and added to the site as soon as possible";
/* Subject of the Autoresponse Mail. e.g. $autor_subject = "Auto Response Email"; */
$autor_subject = "Alexj17.com - Cheat Submitted";
/* The URL the form will redirect to after processing the email form. e.g. $after = "http://www.yourdomain.com"; */
$after = "http://www.alexj17.com/submit/cheat/sent.htm";
/* The required fields for the form. e.g. $rfields = "name,email,message"; separate fields with a comma. the fields are what that is found in:
the name part. in this case, it is email. another example.
so in this case it is bla. if you don't want any required fields, just leave this thing blank(default)*/
$rfields = "name";
// DO NOT EDIT ANY FURTHER PLEASE.
if (isset($sent)) {
if (!$rfields == "") {
$rfields = explode(",", $rfields);
for($i = 0; $i < count($rfields); $i++) {
if ($$rfields[$i] == "") {
echo "You have not completed the required field $rfields[$i]. Please click here to go back and fill up the required field. Thank You.";
exit;
}
}
}
if (!ereg('^[-!#$%&\'*+\\.( space)/0-9=?A-Z^_`a-z{|}~]+'.
'@'.
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
echo "Your email, $email, is not valid. Please click here to fill in a proper email. Thank You.";
exit;
}
$fmail = "$y_name, here is a cheat that has been submitted from your site, you are very sexy and everyone loves you, nice site by the way\n\n";
$fmail.= "IP Address: $REMOTE_ADDR\n";
$fields = array_keys($HTTP_POST_VARS);
for($i = 0; $i < count($fields); $i++) {
$temp = $fields[$i];
if ($temp == "rfields" || $temp == "submit" || $temp == "sent" || $temp == "y_name" || $temp == "y_email" || $temp == "autor" || $temp == "autor_message" || $temp == "$autor_mail" || $temp == "$autor_subject" || $temp == "after")
$fmail = $fmail;
else {
$temp1 = stripslashes($HTTP_POST_VARS[$temp]);
$fmail.= "$temp: $temp1\n";
}
}
$fmail.= "\nScript Provided by MyKazaam (http://mykazaam.com)";
$mailed = mail($y_email, "Submitted Cheat", $fmail, "From: $name <$email>");
if ($autor == "yes")
{
$autor_subject = stripslashes($autor_subject);
$autor_mail = stripslashes($autor_mail);
mail($email, $autor_subject, $autor_mail, "From: $y_name <$y_email>");
}
if(!$mailed) {
echo "There was an error. Please contact the Webmaster?";
}
echo "";
} else {
?>
size="2">