Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using a form to POST to a FileMaker XSLT page

Featured Replies

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>

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

  • 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.