PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

changing default radio buttons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • changing default radio buttons

    Hi I wanted to be able to change the radio buttons default. I mean, the two radio buttons the user can check to search ALL words or ANY words. I want the ALL words button to be checked by default, not the ANY button. I thought I had found the script that controls this, and changed it, but it didnt seem to work.

    PHP Code:
    // 1 if we are searching for ALL terms
    // 0 if we are searching for ANY terms (default)
    if (isset($_GET['zoom_and']))
        
    $and intval($_GET['zoom_and']);
    elseif (isset(
    $DefaultToAnd) && $DefaultToAnd == 1)
        
    $and 1;
    else
        
    $and 0
    I reversed the $DefaultToAnd == 0. then changed $and = 0 else $and = 1

    Can you guys point me to the tutorial that shows how to do this? or tell me how. Thanks!

  • #2
    You don't need to edit code.

    In the search page configuration window, check the box,
    "Default to match all search words"

    Comment


    • #3
      ahhh ok didnt see it...I looked, guess I overlooked that option! Thanks!

      Comment

      Working...
      X