Text area posting to php

Ian Hobson ian at ianhobson.co.uk
Fri Sep 11 18:20:08 MSD 2009


Nick Pearson 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

> On Fri, Sep 11, 2009 at 7:46 AM, Ian Hobson <ian at ianhobson.co.uk> wrote:
>   
>> 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
>>
>> <FORM METHOD="POST" action="question.php?act=Save&amp;subj=2"><table
>> width="100%">
>> <tr><td width="25%" align="right">Subject : </td><td align="left">Decision
>> Coach</td></tr>
>> <tr><td><input type="submit" value="Save subject"></td><td> </td></tr>
>> <tr><td colspan='2' ><textarea COLS="90" rows="35" name="xmlarea"
>> id="xmlarea" >
>> &lt;questionset title=&quot;Decision Coach&quot;&gt;
>>
>> lots of content snipped
>> &lt;/questionset&gt;
>> </textarea>
>> </td></tr></table>
>> </form>
>>
>> What could be going wrong? How can I diagnose the problem further?
>> Regards
>>
>> Ian
>>
>>
>>
>>
>>
>>
>>
>>
>>     
>
>
>
>   






More information about the nginx mailing list