If I have three text input and I want to combine the values in these three text input into one POST name, how can I do that?
UPDATE:
a good example would be if I have a phone number field, and I have three fields for the phone number… I wanted this to be posted as one so back in the server side I can just access it as $POST[‘phone’]
Would be nice if something like jQuery can help me out here.
Have them as an array:
Then you can access them in the POST array.
You have not indicated the programming language, but in PHP it would be,
$_POST['inputs'][0],$_POST['inputs'][1],$_POST['inputs'][2]…Since you want to have only one phone input which contains the full phone number appear on server side, not parts of it, and you are using jQuery in your project, this will make things easy for you:
1. Sample Markup
2. jQuery