RussellB Posted March 4, 2005 Posted March 4, 2005 Anyone know the answer to this? I am trying (still) to receive data from an external web server via POST. I made up a simple form to test this process. with the form action providing the url to the XSLT page and a bunch of hidden attributes providing the data (text only). If I include name="submit" for the button input, it does not work. Does anyone know why? That makes it hard to work with external web servers, etc. Thanks. <html> <head> <title>Test Form</title> </head> <body> <form method="post" action="http://127.0.0.1/fmi/xsl/events/thanks.xsl?"> <input type="hidden" name="ewayTrxnNumber" value="118"/> <input type="hidden" name="ewayTrxnStatus" value="True"/> <input type="hidden" name="eWAYresponseCode" value="1"/> <!--Works--> <input type="submit" value="submit"/> <!--Does not work--> <input type="submit" name="submit" value="submit"/> </form> </body> <html>
Martin Brändle Posted March 5, 2005 Posted March 5, 2005 The name attribute with <input type="submit"> has no meaning here, because you define a button, not a name/value pair that is submitted to the database. The value attribute is used for setting the label of the button. An alternative is to use the <button> html element. BTW: I see no <input type="hidden" name="-db" value="yourdatabase"> and no <input type="hidden" name="-find" value=""> tags in your code. Did you instead define the necessary parameters in the <?xslt-cwp-query params="..."> processing instruction in thanks.xsl ? Martin
RussellB Posted March 6, 2005 Author Posted March 6, 2005 Sorted it out. Needed to include ALL the fields being sent by the POST in the web layout and now it works like a dream!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now