Skip to main content
May 29, 2008
Question

invisible enters output=" %0D%0A%" while reading data from php

  • May 29, 2008
  • 1 reply
  • 719 views
Hello, i made a php file and returns this output: hello=ok in the internet explorer.

But in flash it outputs hello=ok%0D%0A%

If you look in the source of the internet browser you can see that there are invisible enters after the output text.
It seems flash converts this into code? But i can't seem to find any enters in my php file.

Is there a way to get rid of this %0D%0A% code?

The way i traced the output is:

function dataOnLoad(evt:Event){
trace(evt.target.data);
if(evt.target.data.hello=="ok") {
gotoAndStop(2)
} else message_txt.text = Error??"
}
This topic has been closed for replies.

1 reply

Known Participant
May 29, 2008
Hi

This is a result of whitespace in your php script, delete all linefeeds, tabs, make sure every line is one a complete line and not split over several. Whitespace in a browser is ignored but Flash will see it and it can be a real pain to get rid of it.

Hope it helps
May 29, 2008
Thanks! I did got some enter in my php script after the closing tag.