I currently have the following code:
<form action="process.php" method="POST">
<fieldset class="form-search">
<input type="text" class="input-text" name="keyword" value="Enter Keyword / Catalogue Code" id="textBox"/>
<?php echo $form->error("keyword"); ?>
<input type="image" class="catalog_search_top" name="search" alt="Search" src="../images/search_form_button.png" />
</fieldset>
My problem is that the image when submitted isn’t doing the same as if its image type submit.
When submitting the form with the code I provided, would it be expected that it would go to form process.php and send $_POST[‘submit’]?
Thanks
if you use a image as submit button you will have in php $_POST[‘search_x’] and $_POST[‘search_y’] instead of $_POST[‘search’]