HTML form data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Clive Moore

    HTML form data

    I have a database search web application in which the user is presented
    with a search page. The search page has a number of values by the body
    onload method.

    My problem lies when the user selects search. The user is taken to the
    results page but when the user returns to the search page he or she is
    presented with a blank search page with default values set.

    What i need is for the form to hold the users input until the user
    selects a clear button.

    Is this possible?

    Thanks for your help?
    Clive


    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
  • Fox

    #2
    Re: HTML form data

    You say "Search web application". I assume you can program a bit. Well than,
    when the request arrives at the server, just fill in the form with that
    users values. Of course, when that body onload() function stays within your
    document, onload() will be executed -- of course, and: will fill in default
    values. So, just fill in the default values on the SERVER instead on the
    client.

    Say, you have a form:

    <form>
    <input type=text value=<% fillin() %>>
    </form>

    server code:

    function fillin()
    {
    if (GET or POST variable == "")
    set form value to default value;
    else
    set value = GET or POST variable's value;
    }

    remove body onload() function entirely.

    HHmmm, is that what you want?

    Check it out, tell your friends: http://www.amabuy.com


    Comment

    Working...