I have php file which displays images based on what the page name is in the URL.
the code is:
<?php
$rightbox = array(
'faqs' => '_img/faqanswers.jpg',
'contact-us' => '_img/contactsuccessful.jpg',
'login' => '_img/loginexperience.jpg',
);
$page = isset($_GET['page']) ? $_GET['page'] : 'home'; // default to home page
echo "<img src=\"{$rightbox[$page]}\" />";
?>
I'm trying to add more images to each section, like so:
$rightbox = array(
'faqs' => '_img/faqanswers.jpg',
'contact-us' => '_img/contactsuccessful.jpg', '_img/contactpotential.jpg', '_img/contactwinner.jpg',
'login' => '_img/loginexperience.jpg',
);
Obviously without any luck, how would I go about inserting the extra images into the code?
Cheers