|
Posted by asdf on 12/05/07 05:27
"Jen Knee" <jenny@8675309.com> wrote in message
news:vuccl3pmg4d6fmrav4mq9lqjoaalnef81h@4ax.com...
> On Tue, 04 Dec 2007 20:59:26 -0800, Tyrone Slothrop <ts@paranoids.com>
> wrote:
>
>>On Tue, 04 Dec 2007 23:35:40 -0500, Jen <jenny@8675309.com> wrote:
>>
>>>
>>>Why oh why does my domain name become part of the link when I use the
>>>following code.
>>><a href="<? echo $web; ?>">Website</a>
>>> the variable $web is from a user input form.
>>>Here's what the link looks like
>>>--http://mysite.com/www.variablesite.com
>>
>>If the http:// is not part of $web, the browser will assume it is a
>>link on your site. You should parse the user input to validate its
>>structure.
> Ha! I'm a noob.. but I should have figured this one out.
> Now I'm going to figure out how to parse user inputs..
> don't tell me, don't tell me..I love this stuff!
> thanks for the quick reponse Tyrone ;)
....ah the enthusiam of youth ;)
Navigation:
[Reply to this message]
|