Jump to content

Quick Checkbox Error


gobbles

Recommended Posts

Hey All,

 

Im just having a bit of a problem with a form.

 

I have a checkbox with the following attributes

 

<input type="checkbox" name="drivers_licence" value="YES">

 

in the other form i have

 

$licence = $_POST["drivers_licence"];

 

Im just wondering why it would be giving me a error like the following

 

Undefined index: drivers_licence

 

Can anyone point out where im going wrong?

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/38156-quick-checkbox-error/
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.