Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    81
    Member #
    21154
    Hi,
    I have a HTML form. My problem is if the user misses one of the required fields, that all the data which was input is lost and the user has to start all over again. The error message is displayed ok but its just remembering the input data that is the problem. I know PHP etc if that is needed.

    Thanks.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    You can use a Javascript or AJAX validator that checks it before they leave the page,
    or if you've already left the page, and you capture all of the variables on the
    PHP process page, you have to return all of them back using $_GET (in the URL).

    On the form page, you have to look for the variables in the URL.

    Depending on how many variables, you could use cookies or sessions so that the
    variables don't show-up in the URL (as it looks a bit messy).

    So, you have several choices, but not being able to see your form ... I guess I don't know.


  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    are you posting to the same page or a differnet one?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:15 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com