Jump to content

print out some values from when user click a check box


xbl1
 Share

Recommended Posts

Hello; :):) I want to print out some value when a user click on a check box. But my code does not works, could you tell why, thanks.

<html><body><form action='deleteR.php' method="POST"><input type="checkbox" name="bike">i have a bike. <br><input type="checkbox" name="car">I have a car.<br><input type="submitD" value="submit"><input type="reset" value="reset"></form></body></html>

in the deleteR.php file

<?if($_POST['bike']!=null) echo "This is bike ";echo "<br>";if($_POST['car']!=null) echo " This is car.";?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...