have a look on <button> tag in w3c.org mate On Wed, Apr 02, 2003 at 09:27:01PM -0500, Thomas wrote: > 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. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
-- Maciek Ruckgaber Bielecki Desarrollo http://www.colegiosenlinea.com "Perfection of means and confusion of ends seem to characterize our age." --Albert Einstein-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php