By dineshbonn on
hello everyone,
I wonder is it possible to create a usercontrols like (textbox,dropdownlist,etc...) in a page and with the database table connected to it. I mean can i create these control in page or create a new page ?.. Or is there any other way to do so ?..
Any help is really appreciated .
thank you.
Comments
_
I believe what you're looking for is the http://drupal.org/project/cck -- which will be part of core in d7!
Is there is any instruction to install in CCK in 6.10
Thank you worldfallz. now i have a confident that i can do some usercontrols realted stuff in drupal using Php. I want to how should i install in this module and use because in the page there is only upgrade to 5.x to 6.x.
_
Most modules are installed the same way-- see http://drupal.org/node/70151 and/or the README.txt or INSTALL.txt included with the module download.
Using cck is documented at: Getting Started with CCK (also available via the module's project page "documentation" link.
Hi worldfallz
I think these computed field and other textfield,textarea all these cck are able to create a static field which is used to enter data while iam creating a page(i mean the new content type page i created with these fields). So i possible like to add a textbox and dropdownlist box and a button in a page where i can the user can enter some text in the textbox and select one from dropdownlist and when click the button the 2 value should be stored to the database table(i mean dynamic). Is it possible to do so ?..
Thank you very much for your help till now..
_
Sorry, I'm not sure I completely understand the question. But yes, with cck fields, you can put fields onto content types that then store their data in the db.
hi worldfallz
I will straightaway ask my doubt.
I have a page in drupal that is to be displayed like this
Name : textbox
City : dropdownlist box (with list of cities).
Button(with name save).
Now these thing can be filled by the user and when the click save button it should store it to the database table which i created newly.
Or is it possible to add a Php and html code that will do these things?.
Thank you veyr much.
_
That's exactly what the http://drupal.org/project/cck allows you to do. Textboxes and drop down list text boxes are provided with the base cck package.
hello worldfallz
sorry to disturb you with this question. I checked out using the cck but the thing is it is static. What i mean to say is these cck allow to create a field that is to be filled out by me once while creating the page but that's not my need.
I have to display a page like the one said before and all the registered user of my site can enter data in it. not create new page.
did you got my question ?..
Thank you..
_
You're not disturbing me-- I'm just not understanding what you're trying to do. CCK is not static-- you can re-edit the page and change it or have other users change it whenever you want (they will need the "edit any" permission do so).
You can't store data in the database without creating a new node, unless you want to custom code a new module or page for this.
There is a module to allows users to fill out the same form over and over, but it does not create nodes and it does not store the data in the database. For this, checkout the http://drupal.org/project/webform module.