I'm fairly new to PHP, but I'm learning fast. I'm presently hard-coding a web page, and for page-switching I'm using a FORM menu made of images. Then I send the request to the next page, and it loads the new page with a require function.
Here's what the code looks like so far (excerpts):
<form action="welcome.php" method="get">
<input class="welcome_menu_button" type="image" src="menu_news_glow.gif" alt="News & Press Releases" name="i" value="news" />
<input class="welcome_menu_button" type="image" src="menu_bio_glow.gif" alt="Band" name="i" value="band" />
<input ...
[...]
<div class="welcome_main">
<?
$i = $_GET['i'];
switch ($i) {
case 'news':
require ('/news/news.php');
break;
case 'band':
require ('band.php');
break;
case 'disco':
require ('/disco/index.php');
break;
case 'dates':...
default:
require ('main.php');
}
?>
</div>
Now, this works... when I use Mozilla's Firefox. For some reason, when using IE6, it doesn't work at all. The default page does not load. The selector will not work either.
Could this be because the "require" is not used properly by IE and I need to use something else?
Or could this be because I've got, on the other pages that load up, another div container?
Or could this be caused by bad CSS, though I hardly have anything yet. Technically, even only the XHTML I'm using should definitely work.
Also, just so you know, my page filename extensions are all .php.
If anybody can clue me in, I'd like some help please!
Thanks in advance!