Adding link to entry
| From: | Bruce Levick | Date: | Thu, 17 Apr 2003 03:10:16 +0000 |
| Subject: | Adding link to entry | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-27129@lists.php.net to get a copy of this message | ||
Howdy,
I have a "Diary" table in a MySql database.
I have set up a basic form on my web page to insert the variables into
the "Diary" table. All works well but I would like to try and implement
a feature that I am not so sure how to do.
Two form fields are "diaryContent" and "diaryLink". A typical entry
would be a block of text for "diaryContent" and a URL address for
"diaryLink".
My goal is to somehow incorporate the $diaryLink variable into the
$diaryContent block of text that is output onto the HTML page.
For example, currently my variables display like this. A block of text
with the link below.
Block of text is the diaryContent information.
This site is really cool so go visit it here.
http://www.diaryLink.com...
Am trying to get the "diaryLink" variable to display in the block of
text.
Block of text is the diaryContent information.
This site is really cool so go <a href =$diaryLink>visit it here</a>.
When I fill the form out to make a diary entry I wish to be able to
choose which words are to be linked.
Is this possible at all??
Regards Bruce