Jump to content

variable to URL


hotliquer

Recommended Posts

Hi,

 

I have searched but cannot find a solution to this very small problem.

 

Can anyone tell me the right way to do this?

I need to declare a $variable at the top of the page. and have it print out inside link URLs.

 

Example:

$variable = ("photos");

 

?>

<a href="http://www.site.com/<?php $variable ?>">TEXT</a>

 

Can anyone tell me the right way to do this?

 

Thanks

 

Ben

Link to comment
https://forums.phpfreaks.com/topic/129212-variable-to-url/
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.