Copy and Paste complete forms via Javascript/PHP

This script demonstrates how you can easily implement a way to copy/paste the data from one form to another, completely unobstrusive. It works like the chrome autofill, but serverside.

The script is a proof of concept and as such does not include the bells and whistles you can dream of. If you get the idea you can easily expand on it and modify it for your use-case.

to the blog entry

Example Form 1

First Name:
Last Name:
Gender:
Male:
Female:
Favorite Food:
Steak:
Pizza:
Chicken:

Select a Level of Education:

Select your favorite time of day:

Example Form 2 (compatible to 1)

First Name:
Last Name:
Gender:
Male:
Female:
Favorite Food:
Steak:
Pizza:
Chicken:

Select a Level of Education:

Select your favorite time of day:

Example Form 3 (incompatible to 1)

First Name:
Last Name:
Gender:
Male:
Female:
Favorite Food:
Steak:
Pizza:
Chicken:

Select a Level of Education:

Select your favorite time of day: