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? Quote 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. Quote 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? Quote 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. Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.