PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
HTML Quickform and dynamic radio button

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
chanw1



Joined: 24 Jan 2007
Posts: 4

PostPosted: Sun Jul 08, 2007 7:06 am    Post subject: HTML Quickform and dynamic radio button Reply with quote

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. Crying or Very sad

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1210

PostPosted: Sun Jul 08, 2007 12:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software