PHP: Passing Multiple Parameters to an img src

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
LucyC
Forum Newbie
Posts: 4
Joined: Mon Jul 14, 2008 7:29 am

PHP: Passing Multiple Parameters to an img src

Post by LucyC »

Hi,

I wish to pass multiple parameters to an img src. I already have successfully passed the one parameter using the following code:

<img src="Chart.php?graphdata1=<?php echo $datacolumns1 ?>">

can anyone tell me what the syntax would be to pass a second parameter? eg if I wished to pass $datacolumns2 as graphdata2, maybe something like (although this doesn't work)....

<img src="Chart.php?graphdata1=<?php echo $datacolumns1 graphdata2=<?php echo $datacolumns2 ?>">

Many thanks
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: PHP: Passing Multiple Parameters to an img src

Post by panic! »

<img src="Chart.php?graphdata1=<?php echo $datacolumns1;?>&graphdata2=<?php echo $datacolumns2 ?>">
Post Reply