You are here: Re: text input with links, etc.. « All PHP « IT news, forums, messages
Re: text input with links, etc..

Posted by Dave Moore on 09/26/96 11:18

Thanks Aho, but that's not what I'm trying to achieve.

"J.O. Aho" <user@example.net> wrote in message
news:3h0q6jFekm3oU1@individual.net...
> Dave Moore wrote:
> > Hi All,
> > I hope you can give me a few pointers on this issue.
> >
> > I'd like visitors to my website to be able to enter text to be viewed on
the
> > site - a bit like a bulletin board or forum. I can do this for regular
text
> > easily by simply populating a 'TEXT' field within my MySQL database and
> > grabbing it back when rendering the site using PHP. However, I'd also
like
> > visitors to be able to put in URL links or email items that can be
clicked.
> > How would I go about doing this?.I've seen this sort of thing on forums
> > where words can be selected and a URL applied, but I have no idea how to
do
> > this and how this information (ie. the link and the associated text)
would
> > be stored in the database field(s).
> > Any ideas?. Are there any PHP examples available for this sort of
thing?.
>
> IMHO the easiest way is to allow users to use HTML-tags, that way they can
set
> URLs.
>
> I think there are quite a lot of examples around the net, you can even
take a
> look at the online manual
>
> http://www.php.net/manual/en/function.mysql-connect.php
> http://www.php.net/manual/en/function.mysql-fetch-array.php
> http://www.php.net/manual/en/function.mysql-query.php
>
> To catch the sent data, you can use $_REQUEST['text-name'] to get the data
> from the form.
>
>
> //Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация