Re: refreshing after submitting a form
From: Markus Ernst (derernst_at_NO#SP#AMgmx.ch)
Date: 12/15/04
- Previous message: Brett Foster: "Re: Coding convention"
- In reply to: paul: "refreshing after submitting a form"
- Next in thread: paul: "Re: refreshing after submitting a form"
- Reply: paul: "Re: refreshing after submitting a form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Brett Foster: "Re: Coding convention"
- In reply to: paul: "refreshing after submitting a form"
- Next in thread: paul: "Re: refreshing after submitting a form"
- Reply: paul: "Re: refreshing after submitting a form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|