Koozali.org: home of the SME Server

SME Server 7.0 and form metod POST in html

at9

SME Server 7.0 and form metod POST in html
« on: September 26, 2006, 10:22:26 AM »
I have some forms in webpage with metod POST and action "blele.php".
And suddenly the forms stoped work. "Suddenly"... I think that stoped work after upgrade SME 6.0 to 7.0. Mayby are any options in server-manager responsible for this?? Or something else...??

at9

SME Server 7.0 and form metod POST in html
« Reply #1 on: September 26, 2006, 10:37:17 AM »
Don't work means  parameters do not send on to the server .

at9

help me
« Reply #2 on: September 26, 2006, 03:21:45 PM »
plissssss

kirkf

SME Server 7.0 and form metod POST in html
« Reply #3 on: September 29, 2006, 07:26:16 AM »
In SME7 the default value of register_globals in php.ini is set to off.  If your php code does not use the $_POST array to receive values from the form post, it will not work.  You could try setting register_globals on, using a custom template.  I expected to do this with a db change, but couldn't get it to work:

mkdir -p  /etc/e-smith/templates-custom/etc/php.ini/
cd  /etc/e-smith/templates-custom/etc/php.ini/
cp /etc/e-smith/templates/etc/php.ini/40DataHandling .

edit 40DataHandling and change register_globals = off to on

expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart

If this works, then you should fix your php code to extract the values from the $_POST array, and reverse the steps to remove the custom-template and reset register_globals to off.