Text area posting to php

Hi All,

I have a site written in php, that I am trying to move onto nginx.

The site works on my test machine = Windows, Apache2.2. and php5.

It does not work on the production machine (Ubuntu, nginx, php5).

The post of a form with a submit button and a textarea arrives with the
textarea with no value, and nothing from the button.

The form is

Subject : Decision Coach
<questionset title="Decision Coach">

lots of content snipped
</questionset>

What could be going wrong? How can I diagnose the problem further?

Regards

Ian

Do you get the values of the “act” and “subj” parameters? Also, is it
the same behavior from different browsers?

I’m not sure this makes a difference, but I’ve never seen request
parameters in the “action” attribute of a form. Is it possible for
you to put the values of the “act” and “subj” attributes in hidden
form fields instead of in the form’s action? That would be the first
thing I would try.

Addition information

Tried it with IE7 and FF3.5 and they behave the same way.

Ian

Nick P. wrote:

Do you get the values of the “act” and “subj” parameters? Also, is it
the same behavior from different browsers?

I’m not sure this makes a difference, but I’ve never seen request
parameters in the “action” attribute of a form. Is it possible for
you to put the values of the “act” and “subj” attributes in hidden
form fields instead of in the form’s action? That would be the first
thing I would try.

Thanks Nick,

The $_REQUEST object contains four variables: act, subj and PHPSESSID
which all point to something, and xmlarea that
has no value. The $_POST contains only xmlarea which also has no value.

I read somewhere that parameters passed in the URL should appear with
any POST params, but the URL is subject to the length limits of a GET.
This is what happens with Apache.

I also added a input type=“text” field, to the form, and that appears,
with value, in both $_POST and $_REQUEST.

So the trouble seems to be with the textarea field.

Ian

If you use print_r(xmlvar) in the middle of an html document…

the data is typed in raw…

and when the data is xml…

   it looks to the browser like invalid tags...

So the browser shows removes those tags…

and when there is no CDATA then you can see nothing!

Duh!

Ian