I have an HTML check box legend that I need to convert to PHP, PHP does not recognize the checkboxes and fires all the time.

PHP ignores change and check box and runs all the time.

            if ($(this).prop("checked")){
            <?php $_SESSION['queryselected'] = 'acutenoncustomer';      ?>
Who is Participating?
Ray PaseurConnect With a Mentor Commented:
If you're new to PHP and want some learning resources, this article may be able to help.
Dave BaldwinFixer of ProblemsCommented:
In your code above, the PHP line will Always run because it is run on the server and the jQuery is run in the browser After the PHP code is run on the server.  While you can insert a value in a javascript with PHP, you can't do the other way around.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.