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? Quote Link to comment 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>'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.