What you want is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Foo</title> </head> <body> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']?>"> <div style="width: 15%; float: left; text-align: center"> <a href="main.phtml" target="_top"><img src="images/home-bttn.jpg" alt="home"/></a> </div> <div style="width: 15%; float: left; text-align: center"> <input type="image" src="images/cs-bttn.jpg" value="Customer Service" name="CS"/> </div> <div style="width: 15%; float: right; text-align: center"> <alt src="images/batch-bttn.jpg" alt="batch"/> </div> <div style="width: 15%; float: right; text-align: center"> <img src="images/admin-bttn.jpg" alt="admin"/> </div> <div style="width: 15%; float: right; text-align: center"> <a href="logoff.php" target="_top"><img src="images/logoff-bttn.jpg" alt="logoff"/></a> </div> <div style="width: 15%; float: none; text-align: center"> <img src="images/rating-bttn.jpg" alt="rating"/> </div> </form> </body>
What I dont' understand is why you are using a POST for this. why not just do something like below and get rid of the form competely. <div style="width: 15%; float: left; text-align: center"> <a href="<?PHP $_SERVER['PHP_SELF']?>?CS=Customer%20Service"><img src="images/cs-bttn.jpg" alt="cs"/> </div> Will pass your var just like before and much much cleaner :) Cheers, -Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php