edatz
04-01-2010, 12:10 PM
Hi, little question.
I have an input field to type in a URL ro a website.
The user has to type http://etc etc
I've put a maximum of 50 allowable characters on it.
But someone (or a bot) could enter more than one http:// on short URLs
How would I stop more than one URL being entered?
I.E. it counts the number of http://'s and if more than one prints out a message.
Does that make sense?
I have an input field to type in a URL ro a website.
The user has to type http://etc etc
I've put a maximum of 50 allowable characters on it.
But someone (or a bot) could enter more than one http:// on short URLs
How would I stop more than one URL being entered?
I.E. it counts the number of http://'s and if more than one prints out a message.
Does that make sense?