Adding link to entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux