dahammer2 Posted June 6, 2003 Posted June 6, 2003 Ok another problem, which isn't exactly oscommerce related as I can simulate this without using oscommerce. When I use this form (Generated from a oscommerce module) <form name="checkout_confirmation" action="http://eval.payitatpost.auspost.com.au/payment.asp" method="post"> <input type="hidden" name="MerchantId" value="boeschco"> <input type="hidden" name="Reference" value="ggssfgdddaa"> <input type="hidden" name="Value" value="200.05"> <input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form> The payment processor picks up 2 extra post fields "x" and "y". yet there not on the form. e.g. URL: MerchantId=boeschco Reference=ggssfgdddaa Value=200.05 x=83 y=13 Error: Parameter 'y' is not recognised. If I changed this form to this code <form name="checkout_confirmation" action="http://eval.payitatpost.auspost.com.au/payment.asp" method="post"> <input type="hidden" name="MerchantId" value="boeschco"> <input type="hidden" name="Reference" value="ggssfgdddaa"> <input type="hidden" name="Value" value="200.05"> <input type="submit" value="GO" name="bob"></form> I don't experience the problem. the difference is I use a submit button vs a image. Suggestions? Thoughts? This one really has me scratching.. I'm almost thinging theres a server error at their end on this one..[/code]
burt Posted June 6, 2003 Posted June 6, 2003 You get X and Y parameters because of the graphic button being used to submit the Form. Remove that button totally, and use a proper "submit" as per your example and you won't get the problem any more. It's not a problem at their end. HTH
voided Posted June 6, 2003 Posted June 6, 2003 i came up with a solution for that... i was able to get rid of the x and y by moving the submit OUTSIDE of the form :] ex: <form ...> ... ... </form> <input type="image" name="submit" src="images/button.jpg" value="submit" border="0" onclick="fnsubmit()"> now all you need is the fnsubmit JS code which is simply: <script language=Javascript> function fnsubmit(){ document.form1.submit(); } </script> voila! Designrfix.com | Graphic Design Inspiration & Web Design Resources - @designrfix
dahammer2 Posted June 6, 2003 Author Posted June 6, 2003 Thanks Yeah, I was going to use some javascript to get around it. I was more hoping that there was some way to stop it happening as I realised dodging the image submit was the easy solution.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.