|
Posted by dave on 05/28/07 22:13
> Well, i just added the http:// to the address and everything worked,
> so i think what i will do is hardcode in the http:// so the client
> only has to putwww.xxx.xxx
Thats all fine to take the easy way, but clients WILL enter
http://www.example.com.
Unless you have a select box/checkbox/radio buttons etc where you
write the values out, expect users to enter invalid data
If you expect data in a specific format, you need to validate it (or
as the previous poster explained, strip the http:// if it exists)
Navigation:
[Reply to this message]
|