Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Matthew Sims
I have a page where a user comes to the page and submits a form after filling it out with dropdown menus that are dynamically driven and get their info form out tables. Now there are times when some one needs to add to this drop down list so I have a separate page open up that allows the

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Vern
POST data from form fields are usually only sent through a submit request. Maybe changing you Javascript refresh to a submit that redirects back to the same page might help? Is there a way to do that? Any examples? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Matthew Sims
POST data from form fields are usually only sent through a submit request. Maybe changing you Javascript refresh to a submit that redirects back to the same page might help? Is there a way to do that? Any examples? I believe Javascript is capable of performing a submit...but if there's one

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 18:11:21 -0400, Vern [EMAIL PROTECTED] wrote: I have a page where a user comes to the page and submits a form after filling it out with dropdown menus that are dynamically driven and get their info form out tables. Now there are times when some one needs to add to this

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Jason Davidson
Why not just use some javascript to put the new value right into the drop down, provided the db query went thru sucessfully, this shouldnt be an issue right. on the popup window, after you insert the new record, get the last inserted id, use php then to generate some JS that will push that new

RE: [PHP] Retain form values...

2004-03-19 Thread Chris W. Parker
John W. Holmes mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 7:11 PM said: Shane McBride wrote: Actually all form validation is done before the form action takes place, so that way we do not loose input. I think you're missing the point. Client side validation is extremely easy

Re: [PHP] Retain form values...

2004-03-18 Thread Matt Matijevich
snip thoughts? /snip I would look into sessions http://www.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retain form values...

2004-03-18 Thread Firman Wandayandi
Hi Jonathan, You can do this, with one file, display a form, proceed the fields, and fill the field form objects with the value. If you use separate page in my mind is impossible. Regards, Firman - Original Message - From: Jonathan Villa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Retain form values...

2004-03-18 Thread John W. Holmes
From: Jonathan Villa [EMAIL PROTECTED] I want to be able to submit the page to another page vs PHP_SELF. On that page I want to be able to validate the form, and if it fails, return the user to the previous page. Now that's easy, but the catch is that I want to retain/repopulate their field

RE: [PHP] Retain form values...

2004-03-18 Thread Chris W. Parker
Jonathan Villa mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 12:01 PM said: I was thinking of forcing a history.back if possible, but would rather use some server side code. I tried researching what can be done with sending headers, but I don't want to use a GET method. I want to

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
-GEN Subject: Re: [PHP] Retain form values... Hi Jonathan, You can do this, with one file, display a form, proceed the fields, and fill the field form objects with the value. If you use separate page in my mind is impossible. Regards, Firman - Original Message - From: Jonathan Villa

RE: [PHP] Retain form values...

2004-03-18 Thread Chris W. Parker
Shane McBride mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 2:50 PM said: How about passing the form variables to a hidden field on the next page? I used this for several page forms before. that won't work because he's not doing a multi-page form. he just wants to send the form data

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Gotcha. I typically use javascript to validate before the form is posted to validate. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:23 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values... Shane McBride mailto

RE: [PHP] Retain form values...

2004-03-18 Thread Chris W. Parker
Shane McBride mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 3:37 PM said: Gotcha. I typically use javascript to validate before the form is posted to validate. ok.. but i don't see how that helps. you're still validating on the server side right? in which case you could still have a

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Actually all form validation is done before the form action takes place, so that way we do not loose input. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:38 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values

Re: [PHP] Retain form values...

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 6:01:00 AM, you wrote: JV I want to be able to submit the page to another page vs PHP_SELF. On JV that page I want to be able to validate the form, and if it fails, JV return the user to the previous page. Now that's easy, but the catch is JV that I want to

Re: [PHP] Retain form values...

2004-03-18 Thread John W. Holmes
Shane McBride wrote: Actually all form validation is done before the form action takes place, so that way we do not loose input. I think you're missing the point. Client side validation is extremely easy to bypass. If that's all you're relying on, you're in trouble. -- ---John Holmes... Amazon