thefollower Posted December 3, 2007 Share Posted December 3, 2007 How do i assign a get link to a variable which also have a variable in the link? Ill explain below. I have this: $Test = '<a href="myitems.php?equip=$WeaponID">Equip</a>'; But my url says: myitems.php?equip=$WeaponID Rather than the actual ID of the weapon ? How do i make it actually use it as a variable rather than a string? Link to comment https://forums.phpfreaks.com/topic/79896-solved-string-with-variable/ Share on other sites More sharing options...
phpQuestioner Posted December 3, 2007 Share Posted December 3, 2007 try this: $Test = '<a href="myitems.php?equip='. $WeaponID .'">Equip</a>'; Link to comment https://forums.phpfreaks.com/topic/79896-solved-string-with-variable/#findComment-404580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.