php - Remember forms value in cookies to later finish -
I have a form, and after completing different forms of customer I want to navigate through this website It is possible to return, and return to the form and keep them filled.
I thought about keeping cookies in a browser's client, other ways that you could recommend?
About the code, here is the JavaScript part o, I really do not know to handle the server-side part, but I would like to use a class to define cookies. I'm new to the point, so if you can tell me in the right direction, then I
fieldsToSave = ['nome', 'sobrenome', 'endereco', 'codigopostal', 'localidade ',' Telemovel ',' e-mail ',' codigopostal2 ',' localidade2 ',' endereco2 ',' n ',' entidade ',' codigopostal3 ',' localidade3 ',' endereco3 ',' nserie '' model ']; Function ajaxext () {var params = []; (Var i = 0; i & lt; fieldsToSave.length; i ++) for {var da = required [i]; Paramaze [I] = O + '=' + $ ('#' + O) .attr ('value'); } Param = Paramas.Join ('& amp;'); $ ("Agendarleft.") HTML ("Loaded") .; $ .Azax ({type: "GET", url: "ajaxload / como.php", data: parameters, success: function () {$ (". Agendarleft") .HTML ("SUCESS");}}); }
You use cookies to store data on client side You can: FieldsToSave = ['Nom', 'Sobranom', 'Andereco', 'Codeigostostal', 'Localized', 'Telemovell', 'Email', 'Codeigostostal 2', 'LocalDayD 2', 'Andereco 2' 'NIF', 'Integrated' codigopostal3 ',' localidade3 ',' endereco3 ',' nserie ',' model ']; Function ajaxext () {var params = []; (Var i = 0; i & lt; fieldsToSave.length; i ++) for {var da = required [i]; Paramaze [I] = O + '=' + $ ('#' + O) .attr ('value'); } Document.cookie = "params =" + parameter; $ ("Agendarleft.") HTML ("Loaded") .; $ .Azax ({type: "GET", url: "ajaxload / como.php", data: parameters, success: function () {$ (". Agendarleft") .HTML ("SUCESS");}}); }
Comments
Post a Comment