Hi,
I made a post a few days ago and i cant find it here now (must have left it toooooo long!)
Quite a few things i need to know...
I need to be able to populate a select box, what ive got is a file that looks like:
--- file.txt ---
Elfyn mcBratney <Elfyn@exposure.org.uk>,Elfyn McBratney <Sysadmin@emcb.co.uk>,Elfyn McBratney <Elfyn@emcb.co.uk>
--- file.txt ---
and i want to populate a <select> with each set seperated by a comma so the it would look like this:
<select>
<option>Elfyn mcBratney <Elfyn@exposure.org.uk></option>
<option>Elfyn mcBratney <Sysadmin@emcb.co.uk></option>
<option>Elfyn mcBratney <Elfyn@emcb.co.uk></option>
</select>
secondly i have an xml file that contains three tags...
<user>root</user>
<pass>root</pass>
<access_level>root</access_level>
so does anyone know how i can get those into variables?
And the latter, is there a way i can read this...
$username = "someuser";
$password = "somepass";
$uunetdom = "someuunt";
and get them into variables like $filedata["username"] or $filedata[username]?
Cheers Guys,
Elfyn