how to retain values after submit

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

    how to retain values after submit


    I have a search page where you can fill in a search text and have som
    options to specify your search.

    after submit I want that the user's input (before submit) is bein
    shown. Currently, after each submit the values are set back t
    default.

    how can i do this

    Dir
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message32686.htm

  • eivind

    #2
    Re: how to retain values after submit

    is the page submitting to itself or to a new page with the exact same form?
    an url to the page with the problem would help :)
    anywayi would do it something like this:

    <input name="whatever" value="<%= request.form("w hatever") %>">

    using VBscript



    Dirk <Dirk.101own@ma il.forum4design ers.com> wrote in message news:<Dirk.101o wn@mail.forum4d esigners.com>.. .[color=blue]
    > I have a search page where you can fill in a search text and have some
    > options to specify your search.
    >
    > after submit I want that the user's input (before submit) is being
    > shown. Currently, after each submit the values are set back to
    > default.
    >
    > how can i do this?
    >
    >
    > Dirk
    > ------------------------------------------------------------------------
    > Posted via http://www.forum4designers.com
    > ------------------------------------------------------------------------
    > View this thread: http://www.forum4designers.com/message32686.html[/color]

    Comment

    • Dirk

      #3
      Re: how to retain values after submit


      the page is submitting to itself. I could use the server side of course
      but maybe there is a simple solution using javascript?

      Dir
      -----------------------------------------------------------------------
      Posted via http://www.forum4designers.co
      -----------------------------------------------------------------------
      View this thread: http://www.forum4designers.com/message32686.htm

      Comment

      • Michael Winter

        #4
        Re: how to retain values after submit

        On Thu, 15 Jan 2004 17:36:15 -0600, Dirk
        <Dirk.103mcq@ma il.forum4design ers.com> wrote:
        [color=blue]
        > the page is submitting to itself. I could use the server side of course,
        > but maybe there is a simple solution using javascript?![/color]

        If you can you server-side scripting, that would be your best course of
        action - it would always work, then.

        With JavaScript, you could only populate the controls:

        1) If JavaScript is enabled, and
        2) If the form was submitted using the GET method.

        If the form was submitted using POST, there is no way for JavaScript to
        access the values. With GET, it is just a simple matter of parsing the URL
        parameters.

        Mike

        --
        Michael Winter
        M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

        Comment

        Working...