$_SESSION passed with insert form b4 user logs in
Posted: Tue Jun 02, 2009 6:18 pm
hi,
my home page is an INSERT form, the user is not logged in yet and may not even be a registered user.
they fill out the INSERT form with what they want to buy, and it goes to the postingTable(post_id, user_id(not assigned yet b/c user not logged in), productInfo, valid(set to NO until user logs in).
i'm good to this point.
the problem: after they insert the user needs to either login or register to complete the post.
let's assume they are a new user, they fill out the INSERT form, and are sent to register.php to sign up. once they fill out the registration form (which this info goes into a separate table, the userTable) then how do i simultaneously update the postingTable? i need to somehow match up the post_id to a $_SESSION variable so that i can UPDATE the postingTable, updating both the user_id and valid = 'yes'...
any help is more than welcomed, i've been stuck on this issue going on three days now.
thank you!
my home page is an INSERT form, the user is not logged in yet and may not even be a registered user.
they fill out the INSERT form with what they want to buy, and it goes to the postingTable(post_id, user_id(not assigned yet b/c user not logged in), productInfo, valid(set to NO until user logs in).
i'm good to this point.
the problem: after they insert the user needs to either login or register to complete the post.
let's assume they are a new user, they fill out the INSERT form, and are sent to register.php to sign up. once they fill out the registration form (which this info goes into a separate table, the userTable) then how do i simultaneously update the postingTable? i need to somehow match up the post_id to a $_SESSION variable so that i can UPDATE the postingTable, updating both the user_id and valid = 'yes'...
any help is more than welcomed, i've been stuck on this issue going on three days now.
thank you!