This must be why you guys get paid the big $$ <g>.  I _never_ thought of
looking at the HTML for errors, doh!  Given the nature of the user who will
be inputting the data (familiar with HTML) I will probable keep this
'quick-n-dirty' for now - I do like the multiple fields concept for future
mods as it will allow for less-HTML literate users to easily build their
links.

Thanks a bunch!

-- Paul

----- Original Message -----
From: "Simon Garner" <[EMAIL PROTECTED]>
To: "John Monfort" <[EMAIL PROTECTED]>; "Paul Warner"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 8:53 PM
Subject: Re: [PHP] pop textarea field w/ text incl. quotes


> From: "John Monfort" <[EMAIL PROTECTED]>
>
> >
> >
> >  Is it necessary to include the 'http:' in the DB field?
> >
> >  It would make your life a lot easier to drop it.
> >
> >  You would then store the url values as
> >     www.mydomain.com
> >
> >  Then, modify your code to add the 'HTTP' whenever it encounter a URL,
or
> >  wherever you will create a link.
> >
> >  This would eliminate the need to deal with special characters...
> >
>
>
> No it wouldn't, as the http:// is not the problem, the problem is the HTML
> markup. What Paul could do is have two DB fields, for the URL and the link
> text, and then form the <A> tag at runtime instead of in the data. But
this
> maybe is not what he wants.
>
> Eg
>
> <?php
>     $linkurl = "http://www.blah.com";
>     $linktext = "Blah";
>
>     echo "<a href=\"$linkurl\">$linktext</a>";
> ?>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to