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.

-Op doesn't work?

Featured Replies

  • Newbies

I can't seem to find a way to make the -Op thingie to work with my searches. The code:

----------------------------------

<form name="sort" method="post" action="http://130.100.101.101:591/ctnz/FMPro">

<input type="hidden" name="-DB" value="[FMP-CurrentDatabase]">

<input type="hidden" name="-Format" value="tablice/[FMP-CurrentDatabase]-list.htm">

<input type="hidden" name="-Max" value="[FMP-CurrentMax]">

<input type="hidden" name="-Lay" value="CGI">

<input type="hidden" name="-Error" value="tablice/[FMP-CurrentDatabase]-list.htm">

<input type="hidden" name="-Op" value="bw">

<input type="text" id="searchvalue" name="IDd" value="" class="inputBox" style="width:155px;">

<hr size="1">

Rezultate sortiraj po

<select name="-Sortfield" size="1" style="width:155px;">

<option value="IDd" selected>ID-u</option>

<option value="ime">Imenu</option>

<option value="prezime">Prezimenu</option>

<option value="IDs">Org. Jedinici</option>

</select>

<br>

<input type="hidden" Name="-Find" Value=" ">

<input type="submit" name="-Find" value="Pokreni" class="pbutton" style="width:155px;">

</form>

------------------------------

It copmletely ignores the Operator and returns results that don't begin with the search value.

Anyone?

Tnx

Roko

That's interesting, because the default value is "bw." Try leaving the whole -Op tag out completely.

If it still doesn't work then you have other problems with the logic of your form.

  • Author
  • Newbies

quote:

Originally posted by Vaughan:

That's interesting, because the default value is "bw." Try leaving the whole -Op tag out completely.

If it still doesn't work then you have other problems with the logic of your form.

I have tryied with other options and all it does is allways searches for "contained" text

e.g.

search=Ann

result=Ann,Anna,Marry-Ann

Roko

try removing:

<input type="hidden" Name="-Find" Value=" ">

the -find is supplied on submit

This "extra" hidden tag is a work-around to a problem (that gets asked on the forum at least every other week) where the form works when the submit button is clicked with the mouse. but produces and error when the return key is pressed.

It can be left in, it's not causing any harm.

The other hidden tag,

<input type="submit" name="-Find" value="Pokreni" class="pbutton" style="width:155px;">

does confuse me a bit. I dunno what it does but by all means try the form without it.

I reckon you've got to try to get the exact match thing happpening. Pop in anpther hidden tag before the search field with "==" in it and see what happens.

This "extra" hidden tag is a work-around to a problem (that gets asked on the forum at least every other week) where the form works when the submit button is clicked with the mouse. but produces and error when the return key is pressed.

It can be left in, it's not causing any harm.

The other hidden tag,

<input type="submit" name="-Find" value="Pokreni" class="pbutton" style="width:155px;">

does confuse me a bit. I dunno what it does but by all means try the form without it.

I reckon you've got to try to get the exact match thing happpening. Pop in anpther hidden tag before the search field with "==" in it and see what happens.

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.