Using a PHP variable -
06-03-2008
, 04:59 PM
I have :
<?php
//--------------TESTING VARIABLES------------
$test_String = $row_Latest['Map_String_Mob'];
print($test_String);
?>
I then try :
<a href=" <?php echo $test_String; ?>" target="_blank">Link</a>
This causing an error when it opens the new page.
How do I use the PHP $test_String in the HTML section. ie what is the
correct syntax.
Dim new_String
new_String = <?php echo $test_String; ?>"
<a href=" new_String" target="_blank">Link</a> |