I want to add ‘http://’ to a link if someone types in starting with ‘www.’ , that information is stored in variable $test. How do i detect if $test is starting with ‘www.’ ?
@YelgnidrocAug 27.2007 — #PS you might also want to do a better regex to check that a valid url has been entered, rather than relying on it being something starting www. as www. on it's own passes this test. :rolleyes:
@koolaidauthorAug 28.2007 — #PS you might also want to do a better regex to check that a valid url has been entered, rather than relying on it being something starting www. as www. on it's own passes this test. :rolleyes:[/QUOTE]
Alright thanks for giving me start, i am fairly new to PHP, so how would i check the whole URL instead of assuming it starts on www. ?