Jump to content

checkbox help


ccrevcypsys

Recommended Posts

is there any way that i would be able to hide one of the checkboxes if it is pulling from a database.

 

Here is the scenario in my website i have all of the different regions (of my website) listed from 1 - 6 on the database. I have just recently made it so that the users can post in different regions other then the old just one region. My problem is that there is an all in the database table. Normally i would just get rid of it but it would void out all of those posts with the region selected as all. What i need to do is hide or get rid of that all without hurting the web site. 

 

Is there any way to do that?

here is my code for the checkboxes

<input name='$row_region[keyid]' type='checkbox' value='$row_region[keyid]'$sel />$row_region[region_name]

now remember that the $row_region[keyid] is from 1 - 6 and 6 is the all button.

Link to comment
Share on other sites

Not sure exactly what you are asking so I'll take your question in a very literal sense:

 

is there any way that i would be able to hide one of the checkboxes if it is pulling from a database.

 

You can hide a checkbox from the users view using CSS, there is no easy way to do it though such as a hidden text field.

Link to comment
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.