PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Strange $_POST behavior - also inserting values as keys
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Strange $_POST behavior - also inserting values as keys

Réponse
 
LinkBack Outils de la discussion
Vieux 26/03/2008, 20h11   #1
kd0bvk@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Strange $_POST behavior - also inserting values as keys

I am trying to someone who has a server that seems to be gluing
array_values onto the keys of the $_POST associative array and thus
feeding extra keys which are confusing the program.

Visual example:

Expected-

key2 => firstval
key3 => secondval

Getting-

key2 => firstval
key3 => secondval
firstval =>
secondval =>

Here's hoping this can be easily stopped with a configuration
directive. Anyone know what it is?

Or is this just a buggy php install?
  Réponse avec citation
Vieux 26/03/2008, 20h24   #2
kd0bvk@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange $_POST behavior - also inserting values as keys

On Mar 26, 3:12 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Impossible to say without some code.


Consider the above a print_r of $_POST

Normal HTML form, works in the expected way (1st above) on every other
server, so I suspect either a config option doing this, some third
party patch possibly, or a php bug.

Any configuration wizards want to take a stab at it?
  Réponse avec citation
Vieux 26/03/2008, 21h12   #3
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange $_POST behavior - also inserting values as keys

kd0bvk@gmail.com wrote:
> I am trying to someone who has a server that seems to be gluing
> array_values onto the keys of the $_POST associative array and thus
> feeding extra keys which are confusing the program.
>
> Visual example:
>
> Expected-
>
> key2 => firstval
> key3 => secondval
>
> Getting-
>
> key2 => firstval
> key3 => secondval
> firstval =>
> secondval =>
>
> Here's hoping this can be easily stopped with a configuration
> directive. Anyone know what it is?
>
> Or is this just a buggy php install?
>


Impossible to say without some code.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 27/03/2008, 05h32   #4
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange $_POST behavior - also inserting values as keys

kd0bvk@gmail.com wrote:
> On Mar 26, 3:12 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Impossible to say without some code.

>
> Consider the above a print_r of $_POST
>
> Normal HTML form, works in the expected way (1st above) on every other
> server, so I suspect either a config option doing this, some third
> party patch possibly, or a php bug.
>
> Any configuration wizards want to take a stab at it?
>


As I said - without your code, the answer is impossible.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h55.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11896 seconds with 12 queries