gobbles Posted February 12, 2007 Share Posted February 12, 2007 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 Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted February 12, 2007 Share Posted February 12, 2007 Some code and perhaps what method you are using on the form might help... Quote Link to comment Share on other sites More sharing options...
JJohnsenDK Posted February 12, 2007 Share Posted February 12, 2007 plz post all your code... cant see what the error is from what you posted. Quote Link to comment Share on other sites More sharing options...
Cagecrawler Posted February 12, 2007 Share Posted February 12, 2007 This bit: $licence = $_POST["drivers_licence"]; should be: $licence = $_POST['drivers_licence']; Use single quotes instead of double quotes. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted February 12, 2007 Share Posted February 12, 2007 that shouldn't matter... just post the old html code and the php your run to process it and we will find the problem... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.