I am trying to finish a project and need what I am sure is some basic code. I am doing an IF statement to call images based on the $page variable. I want to add a pre-statement that will exclude some of the pages from the dynamic call. So what I need is something like this:
if ($page==var1,var2,var3)
echo("<img src=\"pics/image.gif\">");
else
if ($page)
echo("<img src=\"pics/$page.gif\");
else
echo("<img src=\"pics/welcome.gif\");
If I just have "var1" alone at the top it works fine. I just need to have multiple $page variables listed.
Thanks for any help.
Jim S.