I'm creating an application using JQuery and HTML. In the first form i you are asked to enter a id, then once this is checked you are asked to add in more information. The problem that i am having is that after you press submit in the second page i want to save all the information together, this includes the id entered in the first page.
The forms are created using HTML and the functionality is done using JQuery. I know this can be done using PHP but as I am not using any PHP for this application I was wondering is this possible any other way.
I am using this in one of the .js pages. Here is the HTML from the first page that is asking for the ID ...
EDIT:
index.html
<script type="text/javascript" charset="utf-8">
$('#RegisterForm').submit(function(){
$.cookie('cardNumberRegField', $('#cardNumberRegField').val());
});
</script>
<form id="RegisterForm" method="post" data-ajax="false" id="registerCardForm"
action="register.html">
<input type="text" id="cardNumberRegField" type="tel" name="cardNumber"
class="required number register" minlength="16" maxlength="16"/>
<input name="Submit" type="submit" class="button" value="Register"/>
</form>
register.html
<script type="text/javascript" charset="utf-8">
$('#AccountDetailsForm').submit(function(){
var cardNumberReg = $.cookie('cardNumberRegField');
$('#tfscCardNumber').val(cardNumberReg );
});
</script>
<form id="AccountDetailsForm" method="post" data-ajax="false" id="thankyoupage" action="thankyou.html">
<input id="tfscCardNumber" type="hidden" name="tfscCardNumber" class="readonly" minlength="2" maxlength="20" readonly="readonly" disabled="disabled"/>
Does anybody know any solutions?