thomashw Posted January 10, 2008 Share Posted January 10, 2008 Is it normal, when using a form, to have the "action" page have a url ending like this: cart.php?Quantity=16&x=69&y=9? I'm inputing the form using an image, so I believe that's why. If it's normal, is there any way to make it not go in the URL? Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/ Share on other sites More sharing options...
pocobueno1388 Posted January 10, 2008 Share Posted January 10, 2008 It's because the default method is GET, you want to change it to post. It will look something like this <form action="cart.php" method="post"> Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435787 Share on other sites More sharing options...
thomashw Posted January 10, 2008 Author Share Posted January 10, 2008 Okay, but what's actually creating the x and y numbers? Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435792 Share on other sites More sharing options...
revraz Posted January 10, 2008 Share Posted January 10, 2008 Your form Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435793 Share on other sites More sharing options...
thomashw Posted January 10, 2008 Author Share Posted January 10, 2008 Your form I realize that. WHAT part of the form? Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435795 Share on other sites More sharing options...
nikefido Posted January 10, 2008 Share Posted January 10, 2008 Your form I realize that. WHAT part of the form? can you post your form here? The part that's named "Quantity", "x" and "y" should be the parts in the form that are sending the data. Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435799 Share on other sites More sharing options...
PFMaBiSmAd Posted January 10, 2008 Share Posted January 10, 2008 The x and y are the coordinates where the image submit button was clicked. Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435801 Share on other sites More sharing options...
thomashw Posted January 10, 2008 Author Share Posted January 10, 2008 Here you go: <form method="post" name="itemselect" action="/v2/v3/cart.php?product_buy=1"> <select name="Quantity"> <option name="Quantity" value="16">16</option> <option name="Quantity" value="20">20</option> </select> <input type="image" src="/v2/v3/images/button.gif" alt="Purchase"> </input> </form> Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435802 Share on other sites More sharing options...
thomashw Posted January 10, 2008 Author Share Posted January 10, 2008 The x and y are the coordinates where the image submit button was clicked. Ahh, interesting. Thanks! Link to comment https://forums.phpfreaks.com/topic/85412-solved-_get/#findComment-435803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.