How do I cache a variable in a form field w/o clicking submit or refreshing the page?
For example, user types in a value, presses the tab key or clicks out of the text box, and the value is saved to be read by php.
Thanks, Dave
could use a javascript onBlur event to set the value of a hidden input. on the submit the hidden input will be sent as part of the form. but since the input text will also be sent, what do you need this for?
I think he wants php to read the variable live, before or without the user click submit. So after the user put the value, it kicks off the variable right away to php. Usually the variable kicks off the value after the user click submit button. But if you know how to solve this, please let me know.
You can't I think.. php is a server side language, it is not designed to do that, I would use javascript to check the variable.
You could submit your document when someone's leave's a textfield, but that's rather disturbing I think.