|
|
Subject:
Frontpage 2002, Form validation problems
Category: Computers > Software Asked by: chieferman-ga List Price: $4.50 |
Posted:
18 May 2005 18:44 PDT
Expires: 17 Jun 2005 18:44 PDT Question ID: 523162 |
I have created a web registration form with validation on several fields. I have a confirmation page if all is correct. I did not create a page for missing data since frontpage creates a default page that displays the items that don't meet the validation. The problem is that page has a link back to my form but it returns the user to the page with all the previous data cleared. They have to enter all the data again. I can create a failure page but I can only list the fields that have validation and not display which one are wrong. One interesting and odd thing occurred, for some unknown reason I was getting individual popup validations for a short time then they disappeared.??? I don't know what I did to create or delete them. I am not a coder, just a fairly educated user. I would like to just have the default validation error page return the user to a form that still has data. |
|
Subject:
Re: Frontpage 2002, Form validation problems
Answered By: rolnick-ga on 22 May 2005 10:09 PDT |
Hi I'm pretty sure that using Javascript history back button will fill your needs. Here is the HTML code for it: <a href="javascript: history.go(-1)">Back</a> Using this code you can create a link that will take user to previous viewed page without clearing form fields. You should of course enter this in code view. I think that you can even, instead inserting such button, write "Please use your browser back button and correct the form" - it may look unprofessional, but many pages use such "technique". Regarding pop-ups - you have to apply some form field validation rules on the form fields, then you will get javascript pop-ups informing about not filled fields. I think that they disappeared because you created custom "failure page" which replaces them. My suggestion - do a little test: create new page and insert simple form with one text field into it, apply some field validation (by right clicking and selecting appropriate option) and test, if the javascript validation pop-up will show (it should show). Next, create custom failure page and check if the pop-up will be shown. Additional links: Discussion about similar problem on microsoft.public.frontpage.client http://tinyurl.com/86nle Microsoft training, tutorials, tips and how-to's about Frontpage http://office.microsoft.com/en-us/FX010858021033.aspx | |
| |
|
|
Subject:
Re: Frontpage 2002, Form validation problems
From: lakheras-ga on 20 May 2005 03:35 PDT |
First of all you have to store all of your field values to session variables,for that you have to use Server side script i.e. ASP etc. If incase your data is not validated properly then you can redirect them to previous page and restore the value of each field through Session. If needed i will provide you the source code for that |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |