Irish SEO,  Marketing & Webmaster Discussion

 
nominate sites now!

Checkbox inserting in mysql

This is a discussion on Checkbox inserting in mysql within the Coding Help forums, part of the Webmaster Help category; Hi all.... Just a quick question. I have a form and inside is i have 4 checkboxes. I have the ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2008, 10:34 AM
Joseph Grogan's Avatar
Wannabe Geek
 
Join Date: Jul 2007
Location: Bogland, beside birr...Cloghan
Posts: 147
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Joseph Grogan will become famous soon enough
Send a message via Skype™ to Joseph Grogan
Default Checkbox inserting in mysql

Hi all....

Just a quick question.

I have a form and inside is i have 4 checkboxes.

I have the boxes set to checked on first value. And when the form is submitted and i check what value goes into the db nothing comes up. But if i unclick one of the checkboxes i get a value of 0 for all the boxes.

Anyone know what is going on.. Here is the code for the boxes
HTML Code:
<label>Email</label>
<input name="contactemail" value="Yes" checked="checked" type="checkbox" /><br />


<label>SMS</label>
<input name="contactsms" value="Yes" checked="checked" type="checkbox" /><br />


<label>Mail</label>
<input name="contactmail" value="Yes" checked="checked" type="checkbox" /><br />


<label>Phone</label>
<input name="contactphone" value="Yes" checked="checked" type="checkbox" /> 

Last edited by Joseph Grogan; 10-01-2008 at 10:36 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-01-2008, 10:40 AM
Joseph Grogan's Avatar
Wannabe Geek
 
Join Date: Jul 2007
Location: Bogland, beside birr...Cloghan
Posts: 147
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Joseph Grogan will become famous soon enough
Send a message via Skype™ to Joseph Grogan
Default

Sorry its ok... Problem sorted....... I didnt have the db set up properly. Had a wrong name in there
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
checkbox, inserting, mysql

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Inserting PHP multidimensional arrays into a mySQL database Ciarán Mc Cann Coding Help 15 03-08-2007 06:15 PM
PHP mySQL Problem!? ziycon Server / Technical Administration Tips and Queries 1 15-07-2007 08:31 PM
mysql 3rigena Webmaster Discussion 4 24-05-2007 09:33 PM
MySQL Optimisation? blacknight Server / Technical Administration Tips and Queries 5 15-01-2007 04:17 PM
CSV to MySQL Conversion Tools? blacknight Coding Help 7 04-01-2007 10:00 AM


All times are GMT +1. The time now is 09:58 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0