Re: [PHP] inspiration needed on problem s

2002-03-03 Thread Steven Walker

I have often looked at problems and immediately thought that PHP is not 
capable of the solution, but then some discovery sheds light and 
suddenly many new things are possible. This fell into that category for 
me too :)

Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]

On Sunday, March 3, 2002, at 09:37  AM, Nick Wilson wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then Steven Walker declared
>> 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.
>
> Yep, that's what I ended up doing. Can't believe I didn't work that out
> on my own!
>
> Cheers Steven
> - --
> - ---
>  www.explodingnet.com   |Projects, Forums and
> +Articles for website owners
> - -- Nick Wilson -- |and designers.
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8gl9kHpvrrTa6L5oRAideAJ9TZIm0RFm9UQL7M9Q4JNcI9XGNygCaA3yK
> yRepNH1fZnkLyTU81w4kKZg=
> =T53I
> -END PGP SIGNATURE-
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] inspiration needed on problem s

2002-03-03 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Steven Walker declared
> 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.

Yep, that's what I ended up doing. Can't believe I didn't work that out
on my own!

Cheers Steven
- -- 
- ---
 www.explodingnet.com   |Projects, Forums and
+Articles for website owners 
- -- Nick Wilson -- |and designers.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8gl9kHpvrrTa6L5oRAideAJ9TZIm0RFm9UQL7M9Q4JNcI9XGNygCaA3yK
yRepNH1fZnkLyTU81w4kKZg=
=T53I
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] inspiration needed on problem s

2002-03-01 Thread Steven Walker

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
[EMAIL PROTECTED]

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
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] inspiration needed on problem s

2002-03-01 Thread Nick Wilson

-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