We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,555 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to tick chosen checkboxes during update?

I have a problem on how to be able to tick the checkboxes chosen during registration.

If i will update 1 record for example a student, his/her chosen, example his/her interests will be ticked during update.

4
Contributors
3
Replies
1 Day
Discussion Span
8 Months Ago
Last Updated
4
Views
jeconje
Newbie Poster
5 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

you can get the value ticket by $_POST['checkbox'] value..

souravbansal89
Newbie Poster
4 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

What are you talking about when you say "tick the checkboxes during registration".

Nothing is ticked during an update. You tick the checkboxes - THEN you update, e.g. form submission or an ajax event.

diafol
Keep Smiling
Moderator
10,838 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,534
Skill Endorsements: 61

Get the status of that check box from your DB table.You may be saved that in 0(not checked) or 1 (checked).Check this status when you update the profile. Exg:

<input type="checkbox" name="chkBx"  <?php  echo ($yourCheckBoxStatus== "0") ?  'checked="checked"'  : '' ; ?> value="0" />
Bachov Varghese
Junior Poster
123 posts since Sep 2011
Reputation Points: 41
Solved Threads: 29
Skill Endorsements: 3

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0670 seconds using 2.71MB