im relatively new to php and i was wondering if there was a way to do the following...
i have three variables $var1, $var2 and $var3. they are all check boxes with values of 'checked'. id like a script that would mean if the values all any of the three variables was 'checked' to display a hyperlinked image...
so far ive got...
if ($var1 == checked) { echo ("<a href=var1_url.html><img src=var1_img.jpg border=0></a> "); }
if ($var2 == checked) { echo ("<a href=var2_url.html><img src=var2_img.jpg border=0></a> "); }
if ($var3 == checked) { echo ("<a href=var3_url.html>blah-blah</a>"); }
else { echo (" - "); }
and if all two variables are 'checked', then display the two images and similarly with three variables.
if none are checked to display " - ".
hope someone can help....!