close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

does not work with multiple Ceck Box

Thread began 8/25/2011 11:48 am by pizzicaluna381282 | Last modified 8/30/2011 10:41 am by Jason Byrnes | 1390 views | 9 replies |

pizzicaluna381282

does not work with multiple Ceck Box

Using the wizard to the search page does not work when I use more than one ceck box. Why?

Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1 of the results page:

php:
<?php

if($_SERVER["REQUEST_METHOD"] == "POST")     {
    foreach(
$_POST as $key => $val) {
        if(
is_array($_POST[$key])) $_POST[$key] = implode(", "$_POST[$key]);
    }
}
?>




if you continue to have a problem, please post a link where I can test this, and compress the search and results page to a zip archive and attach the zip file to your reply.

Sign in to reply to this post

pizzicaluna381282

does not work

Still does not work. Please solve the problem quickly. Also because the software is not free but a fee. I do not want to be a tester but the user of a software that works!

Attached Files
for wa.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I think the issue is in the way you have set the DataAssist search up to use the checkboxes.

when you select to Use Checkbox search criteria type, you will need to specify the Checked and Unchecked values to use.

With the other search criteria types, they will not be included if there is no value, but with the checkbox search criteria type, they will be included and use the unchecked value you set.

see the attached screen shot for more details

Most likely, for your needs, you would want to use the edit criteria type, even for the check boxes.

Sign in to reply to this post

pizzicaluna381282

I have already done so. but after doing this does not work.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, please send the most recent copy of your page, and a link where i can test this in the browser.

Sign in to reply to this post

pizzicaluna381282

new page

Referring to your request this is the page.
The page's link is:
soci_Search.php

Attached Files
perwa2.zip
Sign in to reply to this post

Ray BorduinWebAssist

Add this to the page:

<?php echo($query_WADAsoci); ?>

That will allow you to view the query created by the search page and might allow you (or me) to figure out why it isn't working right.

Does the database use '1' and '0' for the column values for those fields? It looks like the search is using 1 and 0 to filter.

Sign in to reply to this post

pizzicaluna381282

the query is

SELECT idsocio, tessera, cognome, nome, indirizzo, cap, citta, pr, telefono, cellulare, email, Sballo, Sbiliardo, Sburscabrid, Scarte, Sciclismo, Scultura, Sfoto, Smontagna, Smusica, Spittura, Sturismo, Svela, Saltro FROM soci WHERE (Sballo = 1) AND (Sbiliardo = 0) AND (Sburscabrid = 0) AND (Scarte = 0) AND (Sciclismo = 0) AND (Scultura = 0) AND (Sfoto = 0) AND (Smontagna = 0) AND (Smusica = 0) AND (Spittura = 0) AND (Sturismo = 0) AND (Svela = 0) AND (Saltro = 0) ORDER BY cognome ASC

Sign in to reply to this post

Jason ByrnesWebAssist

Like i said in my initial reply, I think you may want to use the edit criteria type for the checkboxes instead of the checkbox criteria type.


the difference between them is that with an edit criteria type, the column will not be included in the search if the box is not checked.

with checkbox criteria type, that column will still be included in the search, just using the unchecked value "0"

Sign in to reply to this post
loading

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...