Forums

Adding "http://" to the URL field...

DJLN 13 Mar, 2009
Greetings everyone !

I hope this one should be more simple than my others questions ! :wink:

How can I add a pre-written "Http://" to the url field of a form,
so that people know that the URL should be added with the
complete "http://www..." structure ?

Thanks a lot for the answer !

Dushan
nml375 13 Mar, 2009
Easiest way would be to simply write your form-field like this:
<input type="text" name="url" value="http://" />
DJLN 13 Mar, 2009

Easiest way would be to simply write your form-field like this:

<input type="text" name="url" value="http://" />



Thank you very much !!!
GreyHead 14 Mar, 2009
Hi Dushan,

There's also a URL validation option, by default this checks for the http:// or https:// . . .

NB it only works for some.domain.com type urls but there is a fix here somewhere that will work for URLs with query strings like the Joomla ones.

Bob
This topic is locked and no more replies can be posted.