 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
chanw1
Joined: 24 Jan 2007 Posts: 4
|
Posted: Sun Jul 08, 2007 7:06 am Post subject: HTML Quickform and dynamic radio button |
|
|
Hi There
I am creating a form with dynamic form elements.
I am having trouble with loading in dynamically radio buttons from a query in the Quickform Package.
I want to get the same results in QUICKFORM package as I would in traditional PHP
Something like this
//Query from Database
$result= mysql_query(mysq"SELECT colorid,color FROM product_colors');
//Loop through results and display all query rows as radio buttons.
while($row_ws=mysql_fetch_array($result)){
<input name="radioname" type="radio" value="colorid" />
}
}
I have searched long and hard and unable to find a solution. I think you need to do something with the DataGrid package but I am unsure.
PLEASE HELP. Any direction would be much appreciated.
Thanks in advance. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1210
|
Posted: Sun Jul 08, 2007 12:56 pm Post subject: |
|
|
DataGrid is not needed here, and in no way related to your question.
What exactly is your question? Using the mysql_* functions for fetching the data from the database is fine, although you might want to use an abstraction layer.
The construction of radio buttons is explained in the manual and in several tutorials. What other information do you need? |
|
| Back to top |
|
 |
|
|
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
|
|