Page 1 of 1

Form actions

Posted: Mon Jun 24, 2002 6:18 pm
by swoolf
Hello all -

Just migrated a PHP/MySQL-driven web site from a development box to the live box. Development running FreeBSD, live running Redhat.

Problem: no forms are working that carry more than one variable in the form action.

For example:

action='/admin/index.php?sec=5&subsec=1'

Forms that have only one variable work fine. More than one, it just ignores it. Submits with no error messages, but does not perform the task.

I tried changing them into hidden inputs instead of passing them through the form action URL, still doesn't work.

This worked fine on my development server, so the code is fine. Just ignores the action variables.

Any clues? Config problem?

Many thanks,

Steve

Posted: Mon Jun 24, 2002 9:53 pm
by will
it may not solve your problem, but check to see what version of PHP you are using on each box.... it may be that you are dealing with the register_globals issue that many people are having when moving to a 4.2 system.

Posted: Tue Jun 25, 2002 1:59 am
by twigletmac
There's also a bit in the php.ini you may want to check:

Code: Select all

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&". 
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"
Could be that that is set to ignore &.

In regards to register_globals are you using the $_GET array to get the information from the URL.

Mac