yo,
did anyone ever experience a problem with multiline variables posted through a form? whenever netscape is used it's perfectly ok, but internet explorer users seem to have problem.
i have a script wich creates text files, in fact domain zones. when a zone is created, the user is asked to verify the text file, and then it's posted through form to the same php script which writes it to disk. i've tried with \n and \r in the text file.
when netscape do this, the zone is perfectly written to disk, however when iexplorer users do this, nasty M's are added to the end of every line, and Bind doesn't like it 🙂
i've tried to remove the trailing returns with regular expressions before the text file is written to disk, ex $zone = ereg_replace("\n", "", $zone);
however, this solves the problem in ie, but creates a new one in netscape 🙂 all lines are writte all over eachother. i believe netscape adds \r to variables in forms and ie \r\n or something like that, however, i've not been able to solve it, yet... maybe someone in here experienced the same problem?
bart
bartdu@belgium.eu.net