HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
onclick checkbox display from database
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
oasis834



Joined: 10 Feb 2008
Posts: 1

PostPosted: Sun Feb 10, 2008 4:12 pm     onclick checkbox display from database Reply with quote

I have checkboxes generated form database.
I want to display fields from databse when its corresponding checkbox is checked and on uncheck hide it.
ghepesdoru



Joined: 14 May 2008
Posts: 2

PostPosted: Wed May 14, 2008 5:46 pm     Reply with quote

I am really tinking you shold use some little bit of ajax to get the thing you need.

You coult just make a javascript function and asign it to the chackbox (with an onclick). Then send the value to a page witch will get the content from the database. And in the same tone you coult add another function to the onclick to close the text selection newly added. (or just make a thogle function for gething and showing the data/hidding(or removing)).

The implementation is not that hard but it needs a little work. Wink (specialy if you want to make it without the use of any javascript library).
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial