I'm a newbie to PHP who has borrowed some code for a registration/login process and I get an error which I can't understand:
Code: Select all
// if ($_POSTї'website'] != '' & !preg_match("e;/^(http|ftp):///"e;, $_POSTї'//website'])) {
// $_POSTї'website'] = 'http://'.$_POSTї'website'];
Here's the error, I'm guessing one of the slashes in the above isn't correct but not sure which one or why. I think the code takes the submitted URL and makes sure it is valid, but that's the problem with borrowing code, you never can tell unless you're not a newbie, in which case you probably code it yourself!
Warning: Unknown modifier '/' in /home/qhwslos/public_html/pitstop/register.php on line 75
Thanks for any assistance.
I should point out that I have got permission to use the code, I've not stolen it!