Re: refreshing after submitting a form

From: Markus Ernst (derernst_at_NO#SP#AMgmx.ch)
Date: 12/15/04

  • Next message: Oli Filth: "Re: Coding convention"
    Date: Wed, 15 Dec 2004 12:59:56 +0100
    
    

    paul wrote:
    > Is there a way to refresh a screen after submitting a form? It seems
    > to not work right or maybe I'm just missing the logic somewhere:

    The logic is:

    if (isset($_POST['comment'])) {
        // process data
        // output confirmation text
    }
    else {
        // display form
    }

    I don't understand why you display two forms, maybe I missed something.

    BTW you should use the action attribute in the form tag, and note that the
    button element is not supported by Netscape 4.x, it is more reliable to use
    the input element. Also I would give the hidden element (if you use it at
    all) a value, as I am not sure if all browsers will transmit it if there is
    none.

    HTH
    Markus


  • Next message: Oli Filth: "Re: Coding convention"

    Relevant Pages

    • refreshing after submitting a form
      ... Is there a way to refresh a screen after submitting a form? ... not work right or maybe I'm just missing the logic somewhere: ...
      (alt.php)
    • Re: Record Layout of Windows Security Event log records ?.
      ... > I noticed 565 was missing, but as you said you'd already found that info ... >> which is applied to the Accesses field. ...
      (microsoft.public.windows.server.security)
    • Re: build -c from Mystery Solved
      ... working from Bryan Everly''s posting "Mystery Solved - Boot CEPC from Hard ... target: obj\x86\debug\startup.obj is missing. ... Paul A. Lowe ...
      (microsoft.public.windowsce.platbuilder)
    • Re: simple msg board--isolating page refresh
      ... >> Does PHP recognize a page refresh? ... I've attempted to use javascript for submitting the form ... > for security image code checks, ip/hosts bans, bans on bad words or bad ... > problem could arise when the browser doesn't support cookies or they are ...
      (alt.php)
    • Re: Remove of Domain Controllers
      ... Good call, Paul. ... > NOT to and that was the piece of info I was missing. ... >>replication errors anymore. ... >>endpoints available from the endpoint mapper.) ...
      (microsoft.public.win2000.active_directory)