I hope someone can help me...
I am allowing people to send FREE text messages from my site to any cell phone...but I only want them to be able to do it 5 times before they get a message saying they now have to pay...can ANYONE help me do this?
I use a form on a html page to submit the info into a perl script that then sends the message.
I would like a sub in the perl file that writes the persons IP address to a file along with an ID which has the value of 1. Then if that person sends another text message, the ID will increase by one, and then when it gets to 5 they get a warning from then on.
So in a log file, the sub would make something like:
127.0.0.1|1
Then if the person from 127.0.0.1 sent another message, it would overwrite the current record and change it to...
127.0.0.1|2
Can someone provide me with the code for this?....Thanks so much!
Paul.
From Paul Wilson.
http://www.audio-grabber.com
On error resume next..
I am allowing people to send FREE text messages from my site to any cell phone...but I only want them to be able to do it 5 times before they get a message saying they now have to pay...can ANYONE help me do this?
I use a form on a html page to submit the info into a perl script that then sends the message.
I would like a sub in the perl file that writes the persons IP address to a file along with an ID which has the value of 1. Then if that person sends another text message, the ID will increase by one, and then when it gets to 5 they get a warning from then on.
So in a log file, the sub would make something like:
127.0.0.1|1
Then if the person from 127.0.0.1 sent another message, it would overwrite the current record and change it to...
127.0.0.1|2
Can someone provide me with the code for this?....Thanks so much!
Paul.
From Paul Wilson.
http://www.audio-grabber.com
On error resume next..