PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
A quick question... I have setup an online application form that allows users' to apply for jobs online to my current company. When they submit the form it checks a few fields for validation. If these are incorrect then there is an option to go back and change these values (using the javascript back browser command). When the screen goes back it loses all the HTML values in the form and the user has to start again. This wouldn't be too much of a problem on a small form but this would take about 30-45mins to fill out so needless to say i need to solve this one
Any help would be appreciated guys, i have searched the forums and cannot really find a viable solution at this time.
This is just off the top of my head... what about adding the "value=" statement in the form field and starting up session variables that can carry the info back to the original page? I havent tried it with the "java back".
could do, could do.. but i would still like to know how this is done if anyone has any suggestions just for the point of knowing it for the future. I don't want to avoid doing something just because i don't know how to do it. You may be right in the way the form should go over itself but i want to also know how to retain values for future reference anyway.
my solution was to first of all not rely on java(<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>)script and (turned off!?)cookies.
I did add an id (session, token) whatever you call it to my action=url in the form. (may be input type=hidden also for sure)
this token is saved to a database with the current step being performed. Now you can save each step and related data to the database. now you are able to able to go back, read out the data from step x (previous, same, first etc.) out of the db and put it back into the form. It's a lot of work, so i won't do that for too many forms. better find an an intelligent object related solution for many forms/steps.