This code is supposed to check if the URL entered in the form starts with http://, and add it if it does not.
It doesn't seem to be working. The parts I don't understand are:Code:if( !ereg("^http://*", $ev_url, $regs) ) { $ev_url = "http://" . $ev_url; }
andCode:ereg ("^. I can find no $regs variable anywhere in the script.Code:$regs
Anyone know the best way to check a URL submitted through a form before inserting into a table?
Mahalo. erin![]()



Reply With Quote


Bookmarks