Jump to content

[SOLVED] string with variable


thefollower

Recommended Posts

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

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.