Jump to content

echo variable with string


calmchess

Recommended Posts

 

usually i can echo a varable inside a url just by writing $varName; but in the following string it doesn't work can somebody help me use the $id variable in the following string?

 

echo "<b>Upload successful</b><span class =span3></span><br /><a href=http://www.privatechatnow.com/currentwebsite/activate?id=$id>Back</a></div>";

Link to comment
https://forums.phpfreaks.com/topic/185142-echo-variable-with-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.