Hello
In a form is there any way to dynamically use the value of a field the user completes (eg their "username") to populate the value of a hidden field (eg "email")?
Basically I am fiddling with an open source user registration application which currently asks for both username and email address. But I only want to ask for email address, so to save time I have renamed the username field on the form to "email" so that the user puts their email address in what is actually the username field.
But the form processing script still requires a value for "email". I can't just give it a default value because the true email field is used for account authentication and password reminder. So I need to ask the user once, but send their email address to the processing script twice.
Hope this makes sense.
Any suggestions much appreciated.
##edit##
I am marking this as resolved because I decided to keep both fields and use them as email and re-enter email. Then compared to make sure they match. It was the quickest solution I could find. Thanks.