Re: submitting a form
| From: | Daniel Convissor | Date: | Thu, 12 Oct 2000 20:55:28 +0000 |
| Subject: | Re: submitting a form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19891@lists.php.net to get a copy of this message | ||
Hey Bryan:
> I hvae a page with a form and all it does is hold
> values using hidden forms from a previous form to make
> the values persist through even more forms.
So, I guess you got through the prior difficulties.
> I know I
> must use a form to submit those hidden fields. But
> all the form has is the hiiden variables and their
> values. Is there a function that will allow me to
> submit the form and go to the next page without
> setting the action property?
You'd be better off merging both scripts into one. If everything is okay,
shove it in the database and tell the user thanks. If there's a problem,
display the form again and don't put the data in the database.
When you want to display your thanks message, you can alternatively send the
user to another page using the header() function:
header("Location: ./blah/foo.htm");
... OR ...
header("Location: http://www.foo.org/blah/foo.htm");
Just make sure there's no whitespace or character output before you call the
header().
See you,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409