Hello, how can I make php display a hyperlink with a variable in it? Pretty much I want to define
$str_folder = "test"
$str_file="filename"
Then display the hyperlink as:
http://www.website.com/uploads/{test}/{filename}
Printable View
Hello, how can I make php display a hyperlink with a variable in it? Pretty much I want to define
$str_folder = "test"
$str_file="filename"
Then display the hyperlink as:
http://www.website.com/uploads/{test}/{filename}
Some simple concatenation?
PHP Code:<?php
$str_folder = "test";
$str_file = "filename";
?>
<a href="http://www.website.com/uploads/<?php print $str_folder . '/' . $str_file; ?>>Link</a>
Fantastic! Thanks.Quote:
Originally Posted by nmadd