When I join, I receive the welcome message and to click on link to activate. When I click on the link, I get the message Essential data from the activation URL is missing! Close your browser (located on the bottom of this script). It worked before & I don't recall changing anything. What am I missing here?
I appreciate any help and please don't answer with to complicated replies. I'm only a rookie and as you can see this is all I could achieve.
<style type="text/css">
<!--
body
{
background-image:url('images/bgactivation.jpg');
background-position:center top;
background-repeat:no-repeat;
}
-->
</style>
<?php
// If the GET variable id is not empty, we run this script, if variable is empty we give message at bottom
// Force script errors and warnings to show on page in case php.ini file is set to not display them
error_reporting(E_ALL);
ini_set('display_errors', '1');
//---------------------------------------------------------------------------------------------------------------------
if (isset($_POST ['email']) && $_POST ['email'] !="") {
//Connect to the database through an include
include_once "scripts/connect_to_mysql.php";
$id = $_GET['id'];
$hashloca = $_GET['sequence'];
$id = mysql_real_escape_string($id );
$id = preg_replace("`", "", $id);
$hashloca = mysql_real_escape_string($hashloca);
$hashloca = preg_replace("`", "", $hashloca);
$sql = mysql_query("UPDATE myMembers SET email_activated='1' WHERE id='$id' AND locator='$hashloca'");
$sql_doublecheck = mysql_query("SELECT * FROM myMembers WHERE id='$id' AND locator='$hashloca' AND email_activated='1'");
$doublecheck = mysql_num_rows($sql_doublecheck);
if($doublecheck == 0){
$msgToUser = "<br /><br /><h3><strong><font color=red>Your RES could not be activated!</font></strong><h3><br />
<br />
Double check your entries & try again. If neither one of those work. Please eMail site administrator and request manual activation.
";
include 'msgToUser.php';
exit();
} elseif ($doublecheck > 0) {
$msgToUser = "<br /><br /><h3><font color=\"#0066CC\"><strong>Congratulations! Your reservation has been confirmed.<br /><br />
CHECK IN anytime up top.</strong></font></h3>";
include 'msgToUser.php';
exit();
}
} // close first if
print "Essential data from the activation URL is missing! Close your browser, go back to your eMail inbox, and please use the full URL supplied in the activation link we sent you.<br />
<br />
Sorry for any trouble. My Global PNR, LLC / admin@example.com
";
?>
Thank you, Scotty
[edited by: bill at 10:14 am (utc) on Apr 29, 2012]
[edit reason] use example.com for e-mail address [/edit]