Forum Moderators: coopster

Message Too Old, No Replies

problem with form submitted to php script

         

sneaks

6:55 pm on Oct 30, 2005 (gmt 0)

10+ Year Member



i have a simple form which intermittently misbehaves...

- user submits form
- xml file created based on the date as a file name
- index xml file has new data reference appended to it

during testing, the problem only happens when i copy/paste to the form from various news article sources on the web. sometimes the form wont preview or submit and also sometimes after it saves the xml file and one goes to view it using, it 'dies' on the xml->load. so i am not sure if its an encoding thing? the xmlfile views perfectly fine in any browser... because a copy paste from a text file works fine...
snx

coopster

5:18 pm on Oct 31, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What do you mean it dies on the xml->load? Are you getting any error messages in your logs?

sneaks

11:15 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



hi, i guess its as i thought cause the error in the log:

DOMDocument::load() [<a href='function.load'>function.load</a>]: Input is not proper UTF-8, indicate encoding! in file

snx