Hi,
When a form is submitted using a standard SUBMIT button it is possible
to catch this via php using if ($submit) but how do you catch this if
you are using an image for submitting instead of the button?
Any help would be greatly appreciated.
Here is a cut down version of my code:
#############################
<?php
if ($submit)
{
echo "<script>alert(\"submitted\");</script>";
}
else
{
echo "<script>alert(\"not submitted\");</script>";
}
?>
<form name="formMoviesSearch" method="post" action="movies_search2.htm">
<!-- both methods put here for testing -->
<input type="image" border="0" name="sub" src="movies.gif">
<input type="submit" name="submit" value="go">
</form>
#############################
Neil
--------------------------------
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--------------------------------