November 5, 201213 yr heres the last few lines of my registartion submit code, but for some reason when the site is live it wont link to the thankyou page it just hangs on a white page when i press submit, the thankyou page does exist and ive double checked it all, i have included the last lines of the code to see if anybody can see if anything is wrong. "Content-Disposition: attachment;\n" . " filename=\"{$name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n"; } } // here's our closing mime boundary that indicates the last of the message $message.="--{$mime_boundary}--\n"; // now we just send the message mail($to, $subject, $message, $headers); $url = 'http://www.kidsmanagement.co.uk/register-thanks.php'; } } ?> Edited November 5, 201213 yr by siUK2012
November 5, 201213 yr Presuming that you thought: $url = 'http://www.kidsmanag...er-thanks.php'; Would take you to the 'thank you' page.. You need to change $url = 'http://www.kidsmanag...er-thanks.php'; to header('location: http://www.kidsmanag...er-thanks.php';'); Just wanted to add that this is only going to work when you call it before any output is sent. If you got any html tags above your php tags this is not going to work. Léon
Create an account or sign in to comment