March 4, 200520 yr 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>
March 5, 200520 yr 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
March 6, 200520 yr Author 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!
Create an account or sign in to comment