Serializing parts of a form
If you have a html form with three inputs, how do you serialize two of the text fields, but not the third, and then pass the serialized data as a post variable (alongside the other variable). An example may better demonstrate what I am trying to ask:
I would like the input 'schoolname' and 'password' to be serialized into a variable called 'custom' (so that when the form is filled out, the next page will receive two post variables, one called custom containing schoolname and password, and another called firstname)
<form name="test" action="http://www.testsite.com" method="post">
School Name:<input type="text" name="schoolname" value=""> </br>
Password: <input type="text" name="password" value=""> </br>
Your Name:<input type="text" name="firstname" value=""> </br>
<input type="submit" value="submit">
Is this possible? (and could you please give me any pointers as to how this would be achieved!)
Thanks for any help!
Re: Serializing parts of a form
Wrong place. This forum's for Java, not HTML.