View Single Post
Old 11-06-2007   #5 (permalink)
Gjbphp
PHP Lover
 
Join Date: May 2007
Location: Zug, Switzerland
Posts: 90

Can you also post the code in the config for me please, because this code here, looks like it evaluates and executes fine. The only thing that will stop execution is the die(mysql_error()); but then you get an error

What you can do is try commenting out different parts of the code so something like

PHP Code:
if($send){

/*

echo '
<html>
<head>
<title>Success</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>

<div id="wrapper">

<div id="head">the resend activation email page</div>
<br>
<div id="success">
<p>The validation email was successfully sent. <a href="login.php">Click here</a> to login once you have activated.</p>
</div>
</div>

</body>
</html>
';
*/

################added this here ################
echo 'This would have sent';

} else {

/*
echo '
<html>
<head>
<title>Error</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>

<div id="wrapper">

<div id="head">the resend activation email page</div>
<br>
<div id="error">
<p>Ha, what an act. There has been an error processing your activation email. Please contact the administrator.</p>
</div>
</div>

</body>
</html>
';
*/

################added this here ################
echo 'This would not have sent';

just to check if the code blocks are executing alright and then try narrowing things down from there.
__________________
You can call me Greg
Gjbphp is offline   Reply With Quote