- Home /
Read second Line of WWWForm.data
I am echoing some information from a PHP script and on the first line is the user name, on the second line is another type of information. I need to print the first line, and print the second.
echo $datas["nick"]; echo $datas["type"];
print(w.data) the first line
and then the second
Answer by DaveA · May 06, 2011 at 08:56 PM
If you mean see it in the console, click on the line, it should show the entire w.data in the lower pane of that console window.
No, I want to print each line in their own console entry
Your php will echo them together so if it were 'nick' and 'type' it would come out 'nicktype' so that won't work, but if it's putting in a newline char (echo $data['nick']."\n".$datas['type']) then you could use Split: var datas = w.text.Split("\n"[0]); print datas[0]; print datas[1];