Menu
Hi guys,
I’ve got an image set as a submit button and im trying to change the submit button image so after its been clicked it changed to another image when the form is submitted the page is being sent to its self. The image doesn’t change until the button is pressed twice any ideas?? heres the code: –
[code=php]
<form action=”<?php echo “all_pics.php?id=$imgid”; ?>” method=”post”>
<?php
if ($check2 == 0) {
echo ‘<input type=”image” name=”submit1″ src=”like.png” border=”0″ value=”Like” />’;
}else {
echo “<img src=’thumbsup.png’/>”;
}
?>
</form>