I had two forms
- login form
- Registration form
login form has the username and password fields and registration form consists controls for registration like username, city, country, etc.,
- Also, I have some hidden controls like
<input type="hidden" name="ctrl1" />
<input type="hidden" name="ctrl2" />
<input type="hidden" name="ctrl3" />
<input type="hidden" name="ctrl4" />
Which is dynamically generated using PHP Code.
What I want is, When the user click login form’s submit or the registration form’s submit, the hidden controls data should also be Posted.
Insert the hidden inputs into both forms when you generate the page: