<p>First Name <input type="text" name="first_name"> Last Name <input type="text" name="last_name"></p>
<input type="hidden" name="screen_name" value="first_name + last_name">
How do I take what was typed into first_name and last_name fields and add them together to the screen_name so when the field is submitted, it inputs the values appropriately for the screen_name field?
I am looking for either a php or jQuery resolution.
Would this do the trick?
<?php $screen_name = $_POST["first_name"]." ".$_POST["last_name"]; ?>
<input type="hidden" name="screen_name" value="<?php print $screen_name; ?>" />