Xtian
Xtian

Reputation: 3587

Auto Populate a form from Email?

Can you have a link in an email, which takes a user to a form, and then populate the input field for 'email' with the user's email address?

Upvotes: 1

Views: 1359

Answers (2)

Dan VanWinkle
Dan VanWinkle

Reputation: 1021

Yes, you can.

You need to have a get parameter on the link. For example, if you have a text-box on form with the id or name parameter of "email", your link should look like this:

http://example.com/page.html?email=[replaceWithEmailAddress]

For multiple parameters:

http://example.com/page.html?email=[replaceWithEmailAddress]&otherId=[replaceWithValue]

Upvotes: 2

nes1983
nes1983

Reputation: 15756

When preparing the email, embed the email address into the url. Therefore, it becomes part of the GET request.

Upvotes: 1

Related Questions