Hi,
I am using a standard html form but I want to use a graphic in place of the default submit button at the bottom of the form.
I am using this code:
<input type="image" src="button.jpg" name="submit">
When I submit my form a script catches the condition with as follows.........
if (isset($_POST['submit'])) {
DO SOMETHING
}
But using the image in place of the default button results in the if statement not evaluating as true.
If I swap thigs around so as to use the default:
<input type="submit" value"Go" name="submit">
The if statement behaves correctly. It is almost as if the theimage is causing the "name" variable of the form not to be passed.
Any ideas, thnaks!
Rob.
I am using a standard html form but I want to use a graphic in place of the default submit button at the bottom of the form.
I am using this code:
<input type="image" src="button.jpg" name="submit">
When I submit my form a script catches the condition with as follows.........
if (isset($_POST['submit'])) {
DO SOMETHING
}
But using the image in place of the default button results in the if statement not evaluating as true.
If I swap thigs around so as to use the default:
<input type="submit" value"Go" name="submit">
The if statement behaves correctly. It is almost as if the theimage is causing the "name" variable of the form not to be passed.
Any ideas, thnaks!
Rob.