Jump to content

loads blank page


bobrick82

Recommended Posts

The problem is with the way you're trying to use the mail function. A basic usage would be

mail("[email protected]", 'online registration',$message);

If you want to include all the other pieces of data you are going to have to concatenate each piece together, and store that into one variable.

Link to comment
https://forums.phpfreaks.com/topic/90374-loads-blank-page/#findComment-463809
Share on other sites

try

if((md5($verif_box).'a4xn') == $_COOKIE['tntcon']){
// if verification code was correct send the message and show this page
mail("[email protected]", 'online registration: '. "\n\n".$message."Lastname: $lastname"."Phone: $phone"."Address: $address"."City: $city"."Zip: $zip"."Date of birth: $dob"."Wife: $wife"."Husband $husband"."Childred: $children"."more info: $moreinfo". "From: $from");
// delete the cookie so it cannot sent again by refreshing this page
setcookie('tntcon','');
} else {

Link to comment
https://forums.phpfreaks.com/topic/90374-loads-blank-page/#findComment-463810
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.