Jump to content

Regarding PHP variable passing


Guest kilbad

Recommended Posts

Guest kilbad
I am passing a variable in a URL called "image". This variable equals the numbers 1-7.

My problem is this, I need to take the variable's value (let's say the url is example.php?image=1 ), and use it to echo another variable, which will, in another file, specify the image's caption..

So with this example, I want to be able to take the "1" and combine it with the word "caption" to echo the variable "caption1" which will already be defined in another place.

Can anyone help me with this?

thanks in advance

Brendan


P.S. also see my post at htmlforums for more details:: http://htmlforums.com/showthread.php?t=80062
Link to comment
https://forums.phpfreaks.com/topic/16230-regarding-php-variable-passing/
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.