I have a search box with an image as submit button.
Now when I submit the URL looks like this: search.php?name=&s=s&submit.x=26&submit.y=8
Normaly the URL looks like ?name=&s=s
, but that is with a button and not with a image.
Who can help me to delete the url after &s=s
?
This is my code:
HTML:
echo '<div id="div3">
<input name="s" value="s" type="hidden">
<input type="image" name="submit" src="../img/search.png" border="0" alt="Submit">
</div>';
search
if (isset($_GET['s'])) {
$string = $_GET['name'];
}
Thanks.