|
Posted by Adam Plocher on 01/19/06 23:55
Let me see if I understand you correctly.. you want to have a PHP
generated value returned from the web server when a user changes a form
value (but before they submit the form)?
If this is correct, you'll need to do this with either a auto-postback
when you leave that field or put a button on your page that the user
has to click to generate a new number. Regardless, you'll need to post
back to the web server in order to have the web server generate a new
value. This could be a good place to use AJAX, too.
You could have JavaScript do it for you, but what is it's uniqueness
based on? If it's based on a database value, then javascript probably
wouldn't be the best.
Navigation:
[Reply to this message]
|