ze1d Posted October 21, 2007 Share Posted October 21, 2007 Hi all,I'm using an input type image (Image button) in my form ... When I click on it and go to the other page, it sends x=33&y=42 (Numbers are for example) in the URL ..Can I remove these from my URL ?Thanks,zeid Link to comment Share on other sites More sharing options...
Ruud Posted October 21, 2007 Share Posted October 21, 2007 Are you using PHP? Link to comment Share on other sites More sharing options...
ze1d Posted October 21, 2007 Author Share Posted October 21, 2007 Classic ASP Link to comment Share on other sites More sharing options...
Err Posted October 22, 2007 Share Posted October 22, 2007 Isn't it the same for PHP and ASP to use <form method="post"> to get rid of the variables in the URL?http://www.w3schools.com/tags/tag_form.asp Link to comment Share on other sites More sharing options...
ze1d Posted October 22, 2007 Author Share Posted October 22, 2007 I can't use POST method .. this form is for a search engine and i need to use GET Link to comment Share on other sites More sharing options...
justsomeguy Posted October 24, 2007 Share Posted October 24, 2007 The browser will submit the x and y coordinates that were clicked on when you click on input type="image". That is what the specification says the browser should do. If you need to submit your form through get, and you don't want the coordinates to show in the URL, then don't use an image button. If you need to use get and you need to use an image then you can't remove the coordinates. Link to comment Share on other sites More sharing options...
ze1d Posted October 24, 2007 Author Share Posted October 24, 2007 ok thanks for the answer Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.