When an email user licks a link in an email that take them to a web form, how do u prefill the form with the user email add? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

When an email user licks a link in an email that take them to a web form, how do u prefill the form with the user email add?

php, php mail, php form,

6th Jun 2018, 2:51 PM
<v>victor</v> 📈
<v>victor</v> 📈 - avatar
2 Answers
+ 2
A couple ways at least; it could be sent along as a URL variable from an anchor in an HTML email: <a href="//www.example.com?email=test@example.com">click here</a> but you can also send a unique string: ... www.example.com?prospectID=1234567890 and then PHP would look up prospectID 1234567890 in a database. In either case, PHP would echo/insert the sent or retrieved value into its output when generating a response to the click.
7th Jun 2018, 9:03 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
thanks for the answer Kirk, please can you paste a sample snippet on this, am still confuse on how to format the php send mail function and the html form
8th Jun 2018, 2:08 AM
<v>victor</v> 📈
<v>victor</v> 📈 - avatar