Re: pop textarea field w/ text incl. quotes
| From: | Paul Warner | Date: | Thu, 22 Feb 2001 02:16:38 +0000 |
| Subject: | Re: pop textarea field w/ text incl. quotes | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41096@lists.php.net to get a copy of this message | ||
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" <sgarner@expio.co.nz>
To: "John Monfort" <monfort@kahuna.engineering.sdsu.edu>; "Paul Warner"
<pwarner@winners-circle.com>
Cc: <php-general@lists.php.net>
Sent: Wednesday, February 21, 2001 8:53 PM
Subject: Re: [PHP] pop textarea field w/ text incl. quotes
> From: "John Monfort" <monfort@kahuna.engineering.sdsu.edu>
>
> >
> >
> > 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>";
> ?>