Page 1 of 1

PHP: Passing Multiple Parameters to an img src

Posted: Mon Jul 14, 2008 7:39 am
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

Re: PHP: Passing Multiple Parameters to an img src

Posted: Mon Jul 14, 2008 10:03 am
by panic!
<img src="Chart.php?graphdata1=<?php echo $datacolumns1;?>&graphdata2=<?php echo $datacolumns2 ?>">