MySQL Forums
Forum List  »  PHP

Echo URL as hot link
Posted by: Parker Shannon
Date: December 17, 2020 04:44AM

Link in MySQL table:
https://wahlburgers.com/dorchester

Variable loaded in PHP:
$website = $row["website"];

How can I echo the word "Website" as a hot link to $website ( https://wahlburgers.com/dorchester )

This is what I have:
<input type="text" id="website" name="website" value="<?php echo "<a href= '" . $website . "'>" . "Website" . "</a>"; ?> ">

Thanks . . .

Options: ReplyQuote


Subject
Written By
Posted
Echo URL as hot link
December 17, 2020 04:44AM
December 17, 2020 10:57AM
December 18, 2020 05:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.