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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.