BoarderLine Posted December 3, 2008 Share Posted December 3, 2008 Hi, I am creating a multi page registration form, the first page contains standard registration information and the second page is for image uploading. On the first form page the users 'UserID' is not known until the database uses auto_increment to create it. How can I then set this UserID as a variable to use to assign to the uploaded images on the second page (as it is not known until AFTER the form post transaction is processed on page one) aragrgahrhg?? Link to comment https://forums.phpfreaks.com/topic/135435-question-on-setting-a-variable/ Share on other sites More sharing options...
gevans Posted December 3, 2008 Share Posted December 3, 2008 set it in a session Link to comment https://forums.phpfreaks.com/topic/135435-question-on-setting-a-variable/#findComment-705532 Share on other sites More sharing options...
BoarderLine Posted December 3, 2008 Author Share Posted December 3, 2008 ok but how do i give it a value as the value not known until after the form has been posted??? Sorry bit new to this game.... Link to comment https://forums.phpfreaks.com/topic/135435-question-on-setting-a-variable/#findComment-705548 Share on other sites More sharing options...
gevans Posted December 3, 2008 Share Posted December 3, 2008 I am creating a multi page registration form On the second page '$_GET' the username and store it in the session. Do you have to submit a form on everypage? Link to comment https://forums.phpfreaks.com/topic/135435-question-on-setting-a-variable/#findComment-705551 Share on other sites More sharing options...
BoarderLine Posted December 3, 2008 Author Share Posted December 3, 2008 ok thanks, and yes i do Link to comment https://forums.phpfreaks.com/topic/135435-question-on-setting-a-variable/#findComment-705558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.