Re: Non-Javascript PHP Onsubmit function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



zzapper schrieb:
> Hi,
> I'd like to have a non-Javascript based general purpose "Are you quite Sure?" PHP form submitter,
> conventionally done using the Javascript Onsubmit Event.
> 
> One way would be to store all the Form Variables in hidden fields generated by a foreach $_POST 
> but anyone have anything simpler?

How about the user saying "no"? You would have to return to the form
page and repopulate the form with the data. So not storing the data in a
usable format is not an option.

Here's a dirty hack:
How about displaying the same form in a hidden DIV?
OK, that one was cruel...

A better one:
You could fetch the RAW post data and store it in the session.
Problems arise when there's more than one window open!
Use a unique ID for the form.

Best solution: Use the hidden fields!


AllOLLi

____________
Sidney: "Are you sure you don't wanna stay for dinner."
Eric: "I'd love to but... I gotta save the world."
[Alias 402]

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux