Opt In Form Question?

I would like to accomplish 2 things from my opt in form. Send person to my site and also retrieve the email address from the person so I can build a list. Is this possible? If so, what code would I use?

Thanks,
Eileen :slight_smile:

Welcome to Sitepoint forums Eileen. Not completely sure if I understand you right? When people fill in a form, aren’t they already on your site?

Hi Eileen,

To collect user information you would use the html <form> element.

Then when the user clicks the “submit” button on the form, all the user information collected by the form is normally sent to a server side script which processes and/or stores the form data into a database, text file or whatever.

You, or someone for you, would need to also code up the server side script to process the form’s data.