Forum Moderators: coopster

Message Too Old, No Replies

How to make a link clickable

In a form

         

Jettie

10:39 am on Feb 16, 2004 (gmt 0)

10+ Year Member



I use Noah's Classifieds

When people sign up, they have to fill in a form with their personal info.
I have the possibility to create a "you homepage" line in the form, but the link is not clickable.
When I set the variable fields details, I have the posibility to "Display the Format".
I do not know exactly what that means ... I'm Dutch :-)) Maybe you can put a string o.s. in here
so that the link will be clickable?

Any suggestions?

[edited by: jatar_k at 5:28 pm (utc) on Feb. 16, 2004]
[edit reason] removed url [/edit]

coopster

8:13 pm on Feb 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I'm not familiar with the script you are referring to, but when I have a link that I want to make active I simply enclose it in an a [w3.org] element with an href [w3.org] attribute:

From a form POST:


$mylink = (isset($_POST['mylink']))? $_POST['mylink'] : '';
if ($mylink) print "<a href=\"$mylink\">$mylink</a>";

From a database:

$sql = "SELECT mylink FROM mytable";
$rows = mysql_query($sql);
$row = mysql_fetch_assoc($rows);
$mylink = $row['mylink'];
if ($mylink) print "<a href=\"$mylink\">$mylink</a>";