chuck_limbo Posted February 20, 2010 Share Posted February 20, 2010 Hey, I'm making a webshop selling jewelery, and for one type of jewelery the customer must decide the length and color. These length and color variables are chosen and sen to the next page where the customer fills out a form with their postal address etc. My concept is for the customer to chose the size and color on page, and that information to be displayed on the top of the page where they fill the address information out. The concept is half done. The variables are displayed on the address information page, but when the form is submitted and sent to my email address, the 'size' and 'color' variables are not there. I believe there is a simple solution, but I just haven't learned it yet. Please let me know if you can help me. I can send links of scripts if necessary. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/192715-form-data-displayed-on-more-than-one-page-and-sent-via-email-help/ Share on other sites More sharing options...
jl5501 Posted February 20, 2010 Share Posted February 20, 2010 The variables from the first form will only be available on the second form as $_POST variables. To keep these previous values through the subsequent stages you have several options. 1) store all the first form values in hidden fields on the second form 2) store all first form values in the session. 3) store them on the server in a database or flat file Link to comment https://forums.phpfreaks.com/topic/192715-form-data-displayed-on-more-than-one-page-and-sent-via-email-help/#findComment-1015183 Share on other sites More sharing options...
jl5501 Posted February 20, 2010 Share Posted February 20, 2010 I would reccomend the session approach Link to comment https://forums.phpfreaks.com/topic/192715-form-data-displayed-on-more-than-one-page-and-sent-via-email-help/#findComment-1015184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.