Gossamer Forum
Home : Products : DBMan : Customization :

Drop down seach with A|B not working

Quote Reply
Drop down seach with A|B not working
Here is the code:

<form name="Search2" method="POST">
<select name="Search3" size="1">
<option value="#" selected>Not Yet Working</option>
<option value="db.cgi?db=default&uid=default&view_records=1&Status=Available|Pending&re=on">Available Listings</option>
</select><input type="button" onclick="location = ''+document.Search2.Search3.options[document.Search2.Search3.selectedIndex].value;" value="Go!" />
</form>

I can get it to work in the browser but when I put this code into html.pl, I get a dbman error. When I delete the RED (above), dbman accepts it. What am I doing wrong?

And thank you Lois for your FAQ's! They are wonderful and give many great ideas and fixes.

Chris

Last edited by:

jnjhost: Feb 17, 2003, 11:10 AM
Quote Reply
Re: [jnjhost] Drop down seach with A|B not working In reply to
   try

Code:
<form name="Search2" method="POST">
<select name="Search3" size="1">
<option value="#" selected>Not Yet Working</option>
<option value="http://www.soldbygilda.com/cgi-bin/gdb/db.cgi?db=default&uid=default&view_records=1&Status=Available|Pending&re=on">Available Listings</option>
</select><input type="button" onclick="location = ''+document.Search2.Search3.options[document.Search2.Search3.selectedIndex].value;" value="Go!" />
</form>


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [jnjhost] Drop down seach with A|B not working In reply to
Are you also using the | in your print qq| ?

That would do it.

try using %7C instead of the |

Last edited by:

joematt: Feb 17, 2003, 1:16 PM
Quote Reply
Re: [joematt] Drop down seach with A|B not working In reply to
Or:

\|
Quote Reply
Re: [joematt] Drop down seach with A|B not working In reply to
Thank you all! This message board is the fastest and best of all I frequent. Adding the URL didn't matter. I am using the pipe rather than the exclamation point.

%7C instead of the | worked! It was the pipe that dbman was not liking. The search works great now!!!!!!!!!!

I'm going to actually pay for this software. I have found DBMan more useful than any script out there.

Chris