Michaelttkk
03-29-2006, 09:45 PM
Hi!
I've got a database and one of the field is website.
This is what I want to do. I'd like to bring back the link the user put at the form and display that link as an anchor link at the display page.
form.html
<form action="display.php" method="post">
Name :<input type="text name="name"><br>
Website :<input type="text name="website"><br>
Message:<textarea rows="4" cols="40" name="message"></textarea><br>
<input type="submit" value="Submit">
</form>
display.php
<?
$name=$_POST['name'];
$website=$_POST['website'];
$message=$_POST['message'];
.....here I have sql_connect etc..script from someone....
echo $name;
echo "<br>Your website is <a href='$website'">$website</a><br>And";
echo "Your message is $message";
echo "Thank you for the post.";
?>
I just want the website output to be clickable as a link or anchor.
Thanks in advanced.
I've got a database and one of the field is website.
This is what I want to do. I'd like to bring back the link the user put at the form and display that link as an anchor link at the display page.
form.html
<form action="display.php" method="post">
Name :<input type="text name="name"><br>
Website :<input type="text name="website"><br>
Message:<textarea rows="4" cols="40" name="message"></textarea><br>
<input type="submit" value="Submit">
</form>
display.php
<?
$name=$_POST['name'];
$website=$_POST['website'];
$message=$_POST['message'];
.....here I have sql_connect etc..script from someone....
echo $name;
echo "<br>Your website is <a href='$website'">$website</a><br>And";
echo "Your message is $message";
echo "Thank you for the post.";
?>
I just want the website output to be clickable as a link or anchor.
Thanks in advanced.