funkytunaa
Technical User
I've got a little subscription form on my website that calls a php script that does a few things, including writing the subscribers Name/email to a log file (text file) and the same for a referral box that is on the form, it also emails anyone that the subscriber puts in the referral box with a pre defined email in the php script.
The php script also checks the log file whether the email that is entered has already been subscribed and then points to a html file depending, also doesn't double up on subscription emails.
Now. I have a couple of queries that I can't seem to figure out.
1/ how many lines can the log file contain and review before it starts to throw up?
2/ Currently, the user can press the back button on the mouse and resend the form over and over again. Is there coding in PHP that can prevet this?
3/ I have put the text file that contains the emails in the root directory, below the public_html, is this secure? Because for the script to check the email address for multiple entries the file needs to be read/write.
Please ask me any questions if I have been a bit vague.
Cheers!!!
The php script also checks the log file whether the email that is entered has already been subscribed and then points to a html file depending, also doesn't double up on subscription emails.
Now. I have a couple of queries that I can't seem to figure out.
1/ how many lines can the log file contain and review before it starts to throw up?
2/ Currently, the user can press the back button on the mouse and resend the form over and over again. Is there coding in PHP that can prevet this?
3/ I have put the text file that contains the emails in the root directory, below the public_html, is this secure? Because for the script to check the email address for multiple entries the file needs to be read/write.
Please ask me any questions if I have been a bit vague.
Cheers!!!