Click here to Skip to main content
15,881,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having php file, from which i am getting data in the form of xml, i am having .ascx page in which i have used select statement to use as drop down list. how to bind the data to that drop downlist of select tag ?

thank you in advance
Posted

1 solution

use
$kis=simplexml_load_file("http://www.example.com/kis.xml");
then foreach the data which you want to show in select tab
example in books in xml
then i will use $kis->books in foreach data
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900