Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Got a problem with a search

Quote Reply
Got a problem with a search
Hi, I know I'm doing something really stupid here because my search works perfectly in Safari but doesn't work in Explorer :o(

Can anyone have a look at this and think of a reason why it wouldn't return any results at all please? I've got this page on the front page of community and it is searching my Links database.

Thankyou for any ideas and help

Sal

Code:
<form name="search" action="/cgi-bin/personals/search.cgi?" method="get">

<b>Location:</b>
<select name="Region" size="1">
<option value="">Select...</option>
<option value="London">London</option>
<option value="Midlands">Midlands</option>
<option value="North East">North East</option>
<option value="North West">North West</option>
<option value="South East">South East</option>
<option value="South West">South West</option>
<option value="N.Ireland">N. Ireland</option>
<option value="Scotland">Scotland</option>
<option value="Wales">Wales</option>
<option value="Channel Islands">Channel Islands</option>
<option value="Eire">Eire</option>
<option value="Outside UK">Outside UK</option>
</select>

<p>

<font face="arial,verdana,helvetica" size="1" color="#000000">
<b>Looking for:</b>
<select size="1" name="catid">

<option value="">Select...</option>
<option value="">A bit of everything</option>
<option value="1">Friendship</option>
<option value="2">Relationship</option>
<option value="3">Email</option>
<option value="4">Activity Partner</option>
<option value="5">Fun</option>
</select>

<br>

<center>
<input type="Submit" value="Search" class="button"></center>
</form>
Quote Reply
Re: [SalB] Got a problem with a search In reply to
Hi. Have you tried;

<form name="search" action="<%db_cgi_url%>/search.cgi" method="get">

.. as that should give a full URL, which could be where your problem is coming from.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Got a problem with a search In reply to
Hi Andy,

many thanks for your quick response. I've just tried that and it's doing the same thing - except it stops working on the safari browser all together.

I've put it back to how it was. I copied and pasted the html into my html editor program so I could run a test on it and the only thing I can see that it comes up with that might be affecting it is it says that the form and /form tags shouldn't be nested.

However I have them inside a table - I have tried it outside the table, inside the same cell and row but all to no avail.

I'm scratching my head here.

http://www.girlmeetsgirl.co.uk/...munity/community.cgi

Many thanks
Sal
Quote Reply
Re: [SalB] Got a problem with a search In reply to
Hi. I think its down to the fact you don't send a value for "query", and also how you were calling the search.cgi script. As I said, this should work fine;

Code:
<form name="search" action="http://www.girlmeetsgirl.co.uk/cgi-bin/personals/search.cgi" method="POST">
<b>Location:</b>
<select name="Region" size="1">
<option value="">Select...</option>
<option value="London">London</option>
<option value="Midlands">Midlands</option>
<option value="North East">North East</option>
<option value="North West">North West</option>
<option value="South East">South East</option>
<option value="South West">South West</option>
<option value="N.Ireland">N. Ireland</option>
<option value="Scotland">Scotland</option>
<option value="Wales">Wales</option>
<option value="Channel Islands">Channel Islands</option>
<option value="Eire">Eire</option>
<option value="Outside UK">Outside UK</option>
</select>
<p>
<font face="arial,verdana,helvetica" size="1" color="#000000">
<b>Looking for:</b>
<select size="1" name="catid">
<option value="">Select...</option>
<option value="">A bit of everything</option>
<option value="1">Friendship</option>
<option value="2">Relationship</option>
<option value="3">Email</option>
<option value="4">Activity Partner</option>
<option value="5">Fun</option>
</select>
<br>
<center>
<input type="hidden" value="*" name="query">
<input type="Submit" value="Search" class="button"></center>
</form>

Hope that helps :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Got a problem with a search In reply to
Hi Andy, I appreciate your help with this. I've just copied and pasted the code you've put above but it's still refusing to play nicely.

Unfortunatley I don't have access to a PC so I don't know if this is occurring on explorer for a pc or just for macs.

Cheers

Sal