Jump to content

Search Buttons With Images


justlukeyou

Recommended Posts

I have a search form which uses an image to perform the search. The search performs correctly however it inserts details of the image in the URL, is this normal?

 

searchdisplaytest.php?term=red-widget&image.x=50&image.y=23

 

Can I get rid of the "&image.x=50&image.y=23"

 

<div class="homepagesearchtext">
<input type="text" name="term" size="20" class="homepagesearch" />
</div>
<div class="searchbuttonbox">
<input type="image" name="image" value="Submit" src="http://wwwdomain.com/earch.PNG" alt="Search" name="image" >

Link to comment
https://forums.phpfreaks.com/topic/232105-search-buttons-with-images/
Share on other sites

Actually, using POST is safer than using GET, since it's harder (but not impossible) to manipulate the values being passed to the script when using POST. Also, the number of characters passed to the processing script is limited when using GET.

 

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.