HighDots Forums  

Using a PHP variable

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Using a PHP variable in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SteveW
 
Posts: n/a

Default 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>




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.