# Form field autofill using cookies?

**URL:** <https://forum.kirupa.com/t/form-field-autofill-using-cookies/227301>\
**Category:** web dev\
**Created:** [May 29, 2007, 8:43am UTC](https://forum.kirupa.com/t/form-field-autofill-using-cookies/227301 "2007-05-29T08:43:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keljnr](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@keljnr](https://forum.kirupa.com/u/keljnr)\
**Post date:** [May 29, 2007, 8:43am UTC](https://forum.kirupa.com/t/form-field-autofill-using-cookies/227301/1 "2007-05-29T08:43:14Z")

</div>

I have a 3 form fields on my page:

Firstname, Surname, Email address. Then I have the submit button.

However, when the submit button is pressed, I want it to go to another page where more fields are there along with the data given to the Firstname, Surname and Email address.

I know in php you use the **echo** function, is there a way you can do this just using javascript?

Hope ya can help…:beam:
