Ipssissimus
01-30-2010, 05:20 PM
Hi
I want to be able to pick up the variable from the switch/case statements and use it within the echo text (html) of the case.
When I view the source code of the page that that holds the code below, the $id is replaced with the variable (great) but it also shows the rest of the text <?php echo....... The variable that is picked up is also the name of the .jpg image and I would like the script to populate this automatically for all the instances where this occurs. Is it possible or am I hoping for too much?
<img class='prodimage' src='../images/<?php echo \"$id\" ; ?>.jpg'>
Many thanks
Andrew
I want to be able to pick up the variable from the switch/case statements and use it within the echo text (html) of the case.
When I view the source code of the page that that holds the code below, the $id is replaced with the variable (great) but it also shows the rest of the text <?php echo....... The variable that is picked up is also the name of the .jpg image and I would like the script to populate this automatically for all the instances where this occurs. Is it possible or am I hoping for too much?
<img class='prodimage' src='../images/<?php echo \"$id\" ; ?>.jpg'>
Many thanks
Andrew