Hi Larry and other developers.
I really hope someone can help me.
I'm trying to do chapter 18 (I have read through the whole book but this is the first time I'm tried to do some of the code).
I've installed xampp, started mercury (set up a new user) but that's all the mercury config I've done to mercury and xampp. I followed Larry's install guide from peachpits website (but didn't notice anything on mercury setup).
I'm using php version 5.4.4.
I'm very new to php though. So this is probably something really simple that I've missed or don't know about.
In chapter 18 I'm on the register.php. I click submit at first I didn't see anything just a white space. So I commented out the first exit() and now I get the "thank you for registering" (data goes into the DB) but I don't get my email (my email addy is valid and I've checked spam etc
Does anyone know what I've missed or what I can do to debug further?
...
if (mysqli_affected_rows($dbc) == 1) {
$body = "Thank you for registering \n\n
You need to activate your account, Please click the following link to complete the registration process \n\n";
$body .= BASE_URL . 'activate.php?x=' . urlencode($e) . "&y=$a";
mail($trimmed['email'],'Registration', $body, 'From: online@xx.co.uk');
// exit(); //commented this out as I wasn't seeing the below text
echo '<h3>Thank you for registering! A confirmation Email has been sent to your email address. Please click on the link in that email in order to active your account and access all the exclusive content!<h3>';
include ('includes/footer.html');
exit();
...
Really appreciate anyones/everyone help. So many thanks in advance,
Regards, Alan