close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Glitch with radio buttons on search

Thread began 11/18/2009 2:12 pm by iainmacdonald331081 | Last modified 11/20/2009 4:28 pm by iainmacdonald331081 | 3617 views | 9 replies

iainmacdonald331081

Glitch with radio buttons on search

Hope someone can help with this.

Basically I did a site a year or so ago, that was all working fine.

However, they changed the hosting, moved all the files across, and exported the database.

Somewhere along the way, a few glitches cropped up - for example the search results page going AWOL, and some SQL error messages cropping up.

So I've been trying to get them to sort it, and am now having to look at the site again myself.

I've got one glitch outstanding - on the page here :

www.mph.uk.com

There's a basic search on the right hand side - where users can select cars or vans as well as a make of vehicle.

The problem is that the radio buttons don't seem to work - if one is checked, and you try to check the other one, they both end up checked instead of swapping.

The radio buttons were originally :

<input type="radio" name="VehicleType" value="Car" id="VehicleType_0" class="tickbox"/>

and

<input type="radio" name="VehicleType2" value="Van" id="VehicleType_1" class="tickbox"/>

With this code on the results page that references them :

$WADbSearch1->addComparisonFromCheck("Category","VehicleType","Car","","AND","= ","=",0);
$WADbSearch1->addComparisonFromCheck("Category","VehicleType2","Van","","AND"," =","=",0);

Which I'm sure worked when I did it originally.

So going back to first principles, I made the name of each radio button the same ("VehicleType"), and that fixed them so that they at least changed when each is selected.

But then the search wouldn't working - it only returned cars, but not vans.

If anyone could let me know how to fix this, that would be much appreciated.

Cheers.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...