Jump to content

Using a form to POST to a FileMaker XSLT page


RussellB

This topic is 7014 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7014 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.