pzieye Posted November 24, 2008 Share Posted November 24, 2008 hey.I have this form:<form method="get" action="test.php"><input type="image" name="color" src="blue.png"></form>When I click the image, it sends as test.php?color.x=number&color.y=number (mouse x,y)but the point was to send like test.php?color=blueHow can I assign that in a image form?(I'll be using POST method, although it's GET on the example.. that's why I didn't just hyperlinked the image)thanks in advance. Link to comment Share on other sites More sharing options...
real_illusions Posted November 24, 2008 Share Posted November 24, 2008 The POST method will not display any variables in the url and is the safest to use, especially for contact info and login forms.Have you tried adding a submit button? Link to comment Share on other sites More sharing options...
pzieye Posted November 24, 2008 Author Share Posted November 24, 2008 I found a way through, nevermind. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.