email form variable
Posted 15 October 2006 - 01:25 PM
I've got a forum where you need to confirm your registration. I send an html email to the user with a code which he has to return. He does that by clicking on a submit button of form which is part of the email. Some how, when I click send, the script that has to run the confirmation in the server runs ok, but I don't get the variable sent from the form in the mail. Is there any normal limitation to receiving variables from mails?
this is the script that processes the form data:
$con = mysql_connect("host","","") or die ("No con");
@mysql_select_db("fsoa", $con) or die ("no db");
//this lines I placed to check wether I get anything from the mail, and nothing happens just prints "HI"
//$randpass = $_GET['randpass'];
//echo "<br />HI";
header ("Location: error_conf_reg.php");
$sql = "UPDATE usu_reg SET randpass = '' WHERE randpass = '$randpass'";
header ("Location: reg_confirmd.php");
Posted 15 October 2006 - 01:38 PM
2) If uncommenting that line doesnt help, can you show the HTML of the mail?
(Gone until 20 to November)
Posted 15 October 2006 - 01:54 PM
I had some major errors! one of them was that I had not changed dreamweaver's form field name and of course I wasn't getting any variable with the name of randpass once I psichologically overcame this error I rewrote the code like this and it worked:
$sql = "UPDATE usu_regis SET randpass = FALSE WHERE randpass = '$randpass'";
mysql_query ($sql) or die (mysql_error ($con));
header ("Location: registro_confirmd.php");
THANKS A LOT FOR YOUR HELP
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users