samoht Posted December 17, 2008 Share Posted December 17, 2008 Hello, I have built a form for submitting CC info to a payment gateway for a giftcard. I have also built another form that serves as a confirmation page - (it is actually from the submit of this form that the info gets sent to the payment gateway). My problem is that right now I am just querying the database for the last saved record to pull up the info on the confirmation page. This is not very secure because multiple people may be filling out these forms at the same time and I have an "Edit" button on the confirm form that sends you back to the first form if you need to change some info. So how do I pass a unique ID to the confirm form so I don't get the wrong data? Link to comment https://forums.phpfreaks.com/topic/137418-how-to-pass-info-from-one-form-to-another/ Share on other sites More sharing options...
ngreenwood6 Posted December 17, 2008 Share Posted December 17, 2008 You could pass the session variable through the url and then use the get clause to make sure you are getting the correct data. Link to comment https://forums.phpfreaks.com/topic/137418-how-to-pass-info-from-one-form-to-another/#findComment-718056 Share on other sites More sharing options...
samoht Posted December 17, 2008 Author Share Posted December 17, 2008 would I pass this through the forms action? Link to comment https://forums.phpfreaks.com/topic/137418-how-to-pass-info-from-one-form-to-another/#findComment-718067 Share on other sites More sharing options...
ngreenwood6 Posted December 17, 2008 Share Posted December 17, 2008 No you would do it when you redirect them to the next page. You will have to show some code if you need some help. Link to comment https://forums.phpfreaks.com/topic/137418-how-to-pass-info-from-one-form-to-another/#findComment-718083 Share on other sites More sharing options...
Lamez Posted December 17, 2008 Share Posted December 17, 2008 you need to have the value as a hidden value. Say you have a input form, then take that input form data and hide it as a hidden value, then keep it until needed. Understand? Link to comment https://forums.phpfreaks.com/topic/137418-how-to-pass-info-from-one-form-to-another/#findComment-718097 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.