I'm a bit new to PHP and I'm trying to get a very very simple php form to work. I need to have a single input field where users can type an email address and click "submit".
The email address needs to be written to a flat file on the server. And the submit button should redirect the users to the next page on my site.
I also need the field to not be mandatory. Meaning they can click submit without entering an email address.
We're just looking to as the user "who referred you".
Any help would be greatly appreciated.