Re: [PHP] Forms PHP

2003-07-03 Thread Greg Wiley
On Wed, 02 Jul 2003 14:58:39 +0100, Greg Wiley [EMAIL PROTECTED] wrote: On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie [EMAIL PROTECTED] wrote: [snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second

RE: [PHP] Forms PHP

2003-07-02 Thread Jay Blanchard
[snip] I have a form that gets filled out and within this form there is a link to add additional information in a new form. When this information is saved I would like the browser to redirect to the previous form (this I can do) but with all the details they have already filled out still in the

RE: [PHP] Forms PHP

2003-07-02 Thread Gary Ogilvie
[snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when the second page is POSTED. Does this make sense? Not enough caffeine for

RE: [PHP] Forms PHP

2003-07-02 Thread Jay Blanchard
[snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when the second page is POSTED. Does this make sense? Not enough caffeine for

RE: [PHP] Forms PHP[Scanned]

2003-07-02 Thread Michael Egan
If I've understood your initial email correctly another approach would be to save the contents of the form to your database and populate the form fields presented subsequently with information retrieved from the database. You can use the header function to redirect to whatever page you wish

RE: [PHP] Forms PHP

2003-07-02 Thread Gary Ogilvie
[snip] Not really, test for emptiness of the variable (isset())...if it is set display it, if not show it as blank. HTH! Jay [/snip] You'll have to forgive me as I am unfamiliar with PHP, still a beginner!! So if I have a page (page1.php) which is my first page with a form. When I click a

RE: [PHP] Forms PHP[Scanned]

2003-07-02 Thread Gary Ogilvie
Wouldn't I then be saving the contents of that page twice in the database? -Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 14:53 To: PHP General Subject: RE: [PHP] Forms PHP[Scanned] If I've understood your initial email correctly another approach

Re: [PHP] Forms PHP

2003-07-02 Thread Greg Wiley
On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie [EMAIL PROTECTED] wrote: [snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when

RE: [PHP] Forms PHP

2003-07-02 Thread Gary Ogilvie
Ah I understand that - many thanks. -Original Message- From: Greg Wiley [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 14:59 To: Gary Ogilvie; 'PHP General' Subject: Re: [PHP] Forms PHP On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie [EMAIL PROTECTED] wrote: [snip] By maintaining

RE: [PHP] Forms PHP

2003-07-02 Thread Jay Blanchard
[snip] You'll have to forgive me as I am unfamiliar with PHP, still a beginner!! So if I have a page (page1.php) which is my first page with a form. When I click a normal link within this form it takes me to page2.php. This page has another smaller form. When the submit button in this form is

RE: [PHP] Forms PHP - Thanks

2003-07-02 Thread Gary Ogilvie
Thanks all, I shall try these methods now. I may be a while - the form is pretty large :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms PHP

2001-12-06 Thread Richard S. Crawford
I've done something similar like this: a href=javascript:window.back() Click here to go back /a In the situations in which I've used it, the form data from the previous page is still in the form fields. Potential downsides of this approach: the data has not yet been processed.

Re: [PHP] forms PHP

2001-12-06 Thread Dan McCullough
In some browsers that is what will happen on a form, is that will process the infromation twice. --- Richard S. Crawford [EMAIL PROTECTED] wrote: I've done something similar like this: a href=javascript:window.back() Click here to go back /a In the situations in which I've used