Jump to content

Basic checkbox question


insanityseanboy

Recommended Posts

I'm sure I'm making some stupid little mistake here...

 

This is in the form in cc.php...

<form action="sc.php" method="post">
...
<input type="checkbox" value="true" name="Acute Sight" />
...
<input type="submit" value="Submit" />
</form>

 

This is in sc.php

<?php
if (isset($_POST["Acute Sight"]))  
     echo "<B> Acute Sight </B><BR />"; 
?>

 

So the plan is to have a checkbox that will print a line in sc.php but at the moment it's printing nothing.

 

Can anyone point me in the right direction?

Link to comment
https://forums.phpfreaks.com/topic/190000-basic-checkbox-question/
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.