Is there an action or anything else that will stop form information being lost when users navigate away from the form pae and then back again?
The following page has a check box to ensure that entrants in a golf tournament have read the rules & conditions and I will apply a validate action to the check box however whe they navigate to the R & C page and back again, the information is lost. I have applied a “link to new window” action at the moment as it is the only way I can think of to get round the problem. Does anyone know of a better way?
Also, I would like to include a survey question on the page which will require a simple yes/no answer by way of a radio button but return an immediate result back to the page with the percentage of yes and no. Does anyone know how I can do this?
Sorry it’s a bit long winded but I would be really grateful for some help on this.
As to stopping someone from navigating away from a partially-completed form, this is really tricky to script and have it work consistently cross-browser. The best solution I have come across is to pop a new window for the rules and conditions instead. Use the Target attribute in the Hyperlink dialog, and set it to _blank. If you don’t see that option, change your Output Level to a non-strict DOCTYPE.
On the survey, you will need a form handler on your server, or you will need to use a service for this. I believe SurveyMonkey has something lightweight for polls like this, but a quick google should turn something up.
I you want to learn to write a simple form handler, this would be an excellent project to try. I did one of these many years ago as my second or third thing while learning PHP.