Jump to content

Recommended Posts

well, i have this page that displays all unverified users. i have a fieldname named "verified" which has a default value of "no" when a new user registers.

 

this is how it looks like

 

verififyusername

 

checkboxhereusername1

checkboxhereusername2

 

 

submit button

 

 

as you can see there are checkboxes on the left which indicates if the user should be verified( change the default value of fieldsname "verified"  "no" to "yes"

 

my code for the checkbox is :

counter - starts from 1 and it increments as to how many unverified users

 

 

<input type=checkbox name=checkbox[counter] value=yes>

 

i can easily display the the name and the value of array checkbox[] using print_r upon the next page but im having trouble in updating it on my database table.

 

i need simple code to update verified "no" to "yes"

 

thanks in advance

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/117463-checkbox-array-thingy/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.