Hi, Im trying to have a url written to a textfiel via the “fwrite”-command in php.
I also dont want to type “http://” every time I input a link, so that should be included in the php-code.
fwrite($FilePointer, "<a href=\"http://".$LinkOne."\" target=\"blank\">".$LinkNameOne."</a> <BR>" );
This should result in a nice HTML-coded url when “www.myLink.com” is sent by the $LinkOne-variable, but instead I get:
<a href="www.myLink.com" target="blank">myLink</a>
That is, everything but the actual “http://”.
Where am I going wrong here?