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
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:
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
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
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
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
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
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:
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
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
-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
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
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
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
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
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
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
17 matches
Mail list logo