Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
User shown Form Data and must OK before final submit

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
vadershero's Avatar
Junior Member with 2 posts.
 
Join Date: Dec 2008
Experience: Beginner
23-Dec-2008, 01:07 AM #1
Post User shown Form Data and must OK before final submit
Hi,
I've created a form that will use a php formailer and be hosted on a Linux server. It works great and I'm using it for a registration page. However, now as it's been up for several weeks I'm finding that people hit submit, then change their mind, go back and make a change and submit again. Some people are registering 3 or 4 times. Here's what I'd like to do. When they hit the submit button have a window or something like that open displaying thier currently selected options along with other reigistration info such as name and phone and email etc. In this window they could review thier answers and then either click an "OK" button which actually would act as the submit button now does and then moves them to my payment page and entering the information into my database. Or the option there of "Cancel" which would then close that window and allow them to make a change before doing it again until they're happy and can hit OK. This would solve all my multiple entries I would believe. I've searched all over the internet, but can't seem to find that answer. I've tried adding a "behavior" to the submit button, but I can only see a "Popup" option, but still submits the data through. I'm sure there's a way either with that submit behavior or perhaps a Javascript.
Thanks for any help.
Scott
amanxman's Avatar
Senior Member with 655 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
23-Dec-2008, 03:49 AM #2
Hey,

This is the principal you need:

The first form is submitted to a page which displays the info that was populated into the fields.

On this second page, the OK button submits this second page with all the variables (which have been passed over from first page).

Basically you need to split it into two seperate sections.

So, for the first form, you need to pass the varaibles from that to another. You can do this using SESSION or passing the variables through URL.

Check out: http://mrarrowhead.com/php_tutorials..._variables.php -- it looks quite old, but it covers both of the above.

Have a read of that and let us know if you need any actual code help (if so, pls post your code here)

Ta
__________________
It deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. Tihs is bcuseae we do not raed ervey lteter by it slef but the wrod as a wlohe.
--------------
RB Web Works
maneetpuri's Avatar
Member with 67 posts.
 
Join Date: Oct 2008
23-Dec-2008, 06:42 AM #3
User shown Form Data and must OK before final submit
Hi Scott,

What you will have to do will be, change the action to this form to some other php page. On this new PHP page you will have to again show the values entered by the users, plus there will be a form that will be created but will have all the fields hidden with values set to the what the user has submitted in the previous step. Now there will be two button on this page “Submit” and “Edit Details”. By clicking on submit you will have simply submit the form to form mailer to complete the registration whereas clicking on edit details should simply take the user back (javascript:history.back()) to the form filled where they can make edits as desired.

Hope this helps,

Cheers,
__________________
Maneet Puri
Lexolution IT Services
Web Development Company
Virtual Assistant Services
vadershero's Avatar
Junior Member with 2 posts.
 
Join Date: Dec 2008
Experience: Beginner
23-Dec-2008, 04:06 PM #4
Second page before submit
Thanks guys. Before I go and recode it I just want to make sure that if they hit the Cancel or back that all thier previous selections and filled out info will remain in tact so that they can just edit rather than re-enter.
Thanks,
Scott
Closed Thread Bookmark and Share

Tags
behavior, form, javascript, submit

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:30 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.