Re: inspiration needed on problem s
| From: | Steven Walker | Date: | Fri, 01 Mar 2002 18:53:17 +0000 |
| Subject: | Re: inspiration needed on problem s | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86824@lists.php.net to get a copy of this message | ||
Nick,
If I understand the problem correctly, the form reset button doesn't
work when the form is prefilled with POST data.
To overcome this, I created reset button of type='submit' value='Reset'.
When loading the form page I test to see if submit=='Reset' or 'Submit'.
If it equals 'Reset', then I clear all the data.
Steven J. Walker
Walker Effects
www.walkereffects.com
steve@walkereffects.com
On Friday, March 1, 2002, at 10:34 AM, Nick Wilson wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all
I'm all out of inspiration in finding an elegant solution to a little
problem, hope you guys can lend a hand :-)
I have a form thats values are object properties. The object is carried
in the current session.
As a result my reset button won't work as the object still exists and so
does it's properties. How can I make it so that the reset destroys or
resets the properties?
Many thanks....
- --
- -----------------------------------------------------------
www.explodingnet.com | Projects, Forums and
+ Articles for website owners
- -- Nick Wilson -- | and designers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE8f8mgHpvrrTa6L5oRAqZsAKCdaQkIQOgs1dTRbvHcfoEj9VYhiwCgk8r6
xlWPCeA3HyvhBeEYikNxMLM=
=itz4
-----END PGP SIGNATURE-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Steven J. Walker
Walker Effects
www.walkereffects.com
steve@walkereffects.com