diff --git a/register_participants.php b/register_participants.php index d90856b..58d2088 100644 --- a/register_participants.php +++ b/register_participants.php @@ -46,6 +46,24 @@ } } + else if($_GET['action']=="resend" && $_SESSION['email']) + { + $q=mysql_query("SELECT num FROM registrations WHERE email='".$_SESSION['email']."'"); + $r=mysql_fetch_object($q); + + $mailbody= "We have received a request for the retrieval\n". + "if your registration number from this email\n". + "address. Please find your existing registration\n". + "number below:\n\n". + "\n". + "Registration Number: $r->num\n". + "\n"; + mail($_SESSION['email'],i18n("Registration for %1",array(i18n($config['fairname']))),$mailbody); + + send_header("Participant Registration"); + echo notice(i18n("Your registration number has been resent to your email addess %1",array($_SESSION['email']))); + echo "
"; + } //if they've alreayd logged in, and somehow wound back up here, take them back to where they should be @@ -69,7 +87,7 @@ $q=mysql_query("SELECT * FROM registrations WHERE email='".$_SESSION['email']."' AND status='new' AND year=".$config['FAIRYEAR']); if(mysql_num_rows($q)>0) { - echo i18n("Please enter the registration number you received in your email, in order to begin your new registration"); + echo i18n("Please enter your registration number that you received in your email, in order to begin your new registration"); echo ""; $allownew=false; } @@ -87,9 +105,10 @@ echo mysql_error(); if(mysql_num_rows($q)>0) { - echo i18n("Please enter the registration number in order to continue your registration"); + echo i18n("Please enter your registration number in order to continue your registration"); echo ""; $allownew=false; + echo "
"; } } @@ -129,11 +148,12 @@ } echo "
"; - echo "
"; echo i18n("Registration Number:"); echo ""; echo ""; echo ""; + echo "
"; + echo i18n("If you have lost or forgotten your registration number, pleaes click here to resend it to your email address"); } else {