Please enlighten me!
thanks in advance,
Batoe
Moderator: General Moderators
Code: Select all
<input type="hidden" value="<?php echo $userID; ?>">Code: Select all
mysql_query("INSERT INTO js_login(agentID, month, pay_type, username, password, FName, MName, LName, Email, survey) VALUES ('$agentID', '$month', '$pay_type','$username', '$password',
'$FName', '$MName', '$LName', '$Email','$survey') ") or die(mysql_error());
mysql_query("INSERT INTO js_account(FName, MName, LName, Email, Address, Suite, City, State, Zipcode,
Country, Hphone_1, Hphone_2, Hphone_3, Mphone_1, Mphone_2, Mphone_3, Wphone_1, Wphone_2, Wphone_3, Extension, acc_stat)
VALUES ('$FName', '$MName', '$LName', '$Email', '$Address', '$Suite', '$City', '$State', '$Zipcode',
'$Country', '$Hphone_1', '$Hphone_2', '$Hphone_3', '$Mphone_1', '$Mphone_2', '$Mphone_3', '$Wphone_1',
'$Wphone_2', '$Wphone_3', '$Extension', 'yes') ") or die(mysql_error());
mysql_close();
header("Location: profile1.php");Code: Select all
$result = mysql_query("INSERT INTO js_login(agentID, month, pay_type, username, password, FName, MName, LName, Email, survey) VALUES ('$agentID', '$month', '$pay_type','$username', '$password',
'$FName', '$MName', '$LName', '$Email','$survey') ") or die(mysql_error());
$userID = mysql_insert_id($result);This is getting hard to follow, but if by "next form" you mean profile1.php, then append it when you use header:cap2cap10 wrote:Yes, how do I pass that new userID to the next form, so that it will now where to place the form data in the mysql db?
Code: Select all
header("Location: profile1.php?userid=$userID");