raila Posted June 16, 2007 Share Posted June 16, 2007 I do see what you meen, but i don't get the result i whant from that. But i may have missed completly on the bitt of code..... Here is what i want to happen: I am making a smal quiz. the question file looks like this: (submitted by users) <q> What is your name? <a1> Thomas <a2> Roger <a3> John --end of file-- I want to make a script that identify each line ass a question(q) or an alternative(a1,a2,a3......) and buts the line into a string so i can print it on the page in the right order. can anyone help me out here? Link to comment https://forums.phpfreaks.com/topic/55831-hmm/ Share on other sites More sharing options...
chigley Posted June 16, 2007 Share Posted June 16, 2007 I can code it if you have the file like this: <question> <q>What is your name?</q> <a>Thomas</a> <a>Roger</a> <a>John</a> </question> Link to comment https://forums.phpfreaks.com/topic/55831-hmm/#findComment-275814 Share on other sites More sharing options...
raila Posted June 16, 2007 Author Share Posted June 16, 2007 You can? please show me :-) I welcome any surgestions. Raila Link to comment https://forums.phpfreaks.com/topic/55831-hmm/#findComment-275827 Share on other sites More sharing options...
chigley Posted June 16, 2007 Share Posted June 16, 2007 Seems like your problem is already solved in one of your many other threads. http://www.phpfreaks.com/forums/index.php/topic,145364.msg621907.html#new Link to comment https://forums.phpfreaks.com/topic/55831-hmm/#findComment-275830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.