Submit Image Button

From: Date: Thu, 03 Apr 2003 02:27:01 +0000
Subject: Submit Image Button
Groups: php.general 
Request: Send a blank email to php-general+get-142056@lists.php.net to get a copy of this message
I have a problem with my php. I have a form and in that form there is an image submit button. When I click on it, it won't tell me if the submit button is clicked. It works fine with a normal one. sample: <? if (!$submit) { ?> <form name="" method="post" action="<?php echo $PHP_SELF ?> <input type="text" name="username" size="20" Class="Box"> <input type="password" name="passwd" size="20" Class="Box> <input type="checkbox" name="remember" value="1"> <input type="image" src="../News/themes/xFClan/button_submit.gif" border="0" name="submit" value="Login" width="55" height="19" alt="Submit"> </form> <? } else { echo "you clicked"; } ?> If I use <input type="submit" ... > This works fine....do I need to do something else with the code? Help is very appreciated. Cheers.

« previous php.general (#142056) next »