Jump to content

-Op doesn't work?


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

Recommended Posts

  • 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 8672 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.