Jump to content

using a check box with an if statement


will_1990

Recommended Posts

i wish to use a checkbox with this code

 

<?php $one_way             = (isset($_POST['one_way'])) ? $_POST['one_way'] : null;

 

I want to follow after a while statement and say if checkbox is not null execute "query" then do  exactly the same while loop as above. if more code or info is needed dont hesitate to ask. Im just not sure how to structure the if statement.

 

thanks alot

 

 

Link to comment
https://forums.phpfreaks.com/topic/136567-using-a-check-box-with-an-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.