This is not a new subject for me, but I’m definitely having new problems with it.
I have a script that sends me a small form with some fields to enter baseball game scores. I’ve done this kind of thing before with other tasks and thought I had a solid model. Seems that now it won’t work when I use my iphone to get the form and then send the form back.
I get the d/e form on my pc and fill the 2 fields in and send it back (to a different script) to have it posted to my db. Works perfect on my PC.
Now if I use my phone to get the form that seems to work. The message that I get on my iphone when I hit send shows the post data that will be sent (why it does this I don’t know) and I simply send this message on. But the ‘posting’ script doesn’t read the data correctly. Instead of getting the post data in one line from stdin it seems to break it off at 78 chars, even tho my fgets function is now set to read 500 bytes! Of course this breaks my process since it doesn’t see all of the input data. (There’s some hidden fields in the data that make the necessary length about 150 chars.)
So – does anyone have any tidbits on why my php code seems to work just fine from and to a laptop, but not from and to an iphone? Why would the iphone uncontrollably cut an input line in half?
If you don’t follow my explanation I can try again ?