I'm new to this as you can probably tell!
I want the user to enter their eMail address before they can download a windows executable file from my site.
I have discovered how to make sure they enter something in the eMail field:
if ($email = "") {
echo("Please enter your eMail address.");
}
else {
My problem is how to start the download here if they have entered their details.
I have seen a number of bits of code which seem to generate headers but when I try them the browser complains that it has already received a header for the page.
All help gratefully received.
Paul