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.

want to search db from data from form...

Featured Replies

  • Newbies

Hi,

I want to make a search page to search a specific field in DB. This may be more of a html question but how can I gett the text to search for from the form and then build the quesry string to find what I need? Very stuck on this problem. I have been trying javascript but stil no thing. Thanks.

tarek316

  • 3 months later...

'<input type="text" name="YourFieldName" value="" />

The NAME of the field is the one you will be using in the form input. The case needs to match (YourFieldName <> yourfieldname).

You don't need to build a query string when you use the FORM. Whatever the user types into the field in the browser will be sent (abcxyz, for example):P YourFieldName=abcxyz, when the SUBMIT button in the form is clicked.

*more detail*:

'<form method="post" action="...">

'<input type="hidden" name="-db" value="myDatabase" />

'<input type="text" name="myField" value="" />

'<input type="hidden" name="-find" value="" />

'<!-- add a hidden action, so that the user can use the ENTER key to submit -->

'<input type="submit" name="-find" value="FIND" />

'</form>

This is very basic, and does NOT include the action and the other parameters needed to access the database, layout, stylesheet, etc.

Of course, you do not need to specify the -db (database) in FMP7, if you use '<?xslt-cwp-query params="" ?>

'<input type="text" name="YourFieldName" value="" />

The NAME of the field is the one you will be using in the form input. The case needs to match (YourFieldName <> yourfieldname).

You don't need to build a query string when you use the FORM. Whatever the user types into the field in the browser will be sent (abcxyz, for example): YourFieldName=abcxyz, when the SUBMIT button in the form is clicked.

*more detail*:

'<form method="post" action="...">

'<input type="hidden" name="-db" value="myDatabase" />

'<input type="text" name="myField" value="" />

'<input type="hidden" name="-find" value="" />

'<!-- add a hidden action, so that the user can use the ENTER key to submit -->

'<input type="submit" name="-find" value="FIND" />

'</form>

This is very basic, and does NOT include the action and the other parameters needed to access the database, layout, stylesheet, etc.

Of course, you do not need to specify the -db (database) in FMP7, if you use '<?xslt-cwp-query params="" ?>

'<input type="text" name="YourFieldName" value="" />

The NAME of the field is the one you will be using in the form input. The case needs to match (YourFieldName <> yourfieldname).

You don't need to build a query string when you use the FORM. Whatever the user types into the field in the browser will be sent (abcxyz, for example): YourFieldName=abcxyz, when the SUBMIT button in the form is clicked.

*more detail*:

'<form method="post" action="...">

'<input type="hidden" name="-db" value="myDatabase" />

'<input type="text" name="myField" value="" />

'<input type="hidden" name="-find" value="" />

'<!-- add a hidden action, so that the user can use the ENTER key to submit -->

'<input type="submit" name="-find" value="FIND" />

'</form>

This is very basic, and does NOT include the action and the other parameters needed to access the database, layout, stylesheet, etc.

Of course, you do not need to specify the -db (database) in FMP7, if you use '<?xslt-cwp-query params="" ?>

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.