Moonsoft Software Solutions

3 options

Started 30 Sep 2014 · 3 replies

  1. moon_1800
    Need help team - thanks in advance
    **********
    Logic
    *********
    if user chooses "select" then output should be ""
    if user chooses "Weekends" then "4 Weekend Selected."
    if user chooses ""Most of the time then"4 Most of the time selected.";
    ******************************

    my code is faulty please see


    if($question4=="Weekends"){
    $message4="4 Weekend Selected.";

    }

    if($question4=="Most of the time"){
    $message4="4 Most of the time selected.";

    }

    else {
    $message4="4 None Selected.";

    }
  2. Moonsoft support
    Hello,

    Maybe with else structure, this is not working as expected. Try to add 'none selected' as default value and test then about 'question' value, like this:


    $message4="4 None Selected.";

    if($question4=="Weekends"){
    $message4="4 Weekend Selected.";

    }
    if($question4=="Most of the time"){
    $message4="4 Most of the time selected.";

    }


    Regards,
  3. moon_1800
    thank you
  4. moon_1800
    thank you

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket