Form actions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
swoolf
Forum Newbie
Posts: 3
Joined: Mon Jun 24, 2002 6:18 pm

Form actions

Post 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
will
Forum Contributor
Posts: 120
Joined: Fri Jun 21, 2002 9:38 am
Location: Memphis, TN

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply