You are here: Re: Something wrong with $_POST « PHP Programming Language « IT news, forums, messages
Re: Something wrong with $_POST

Posted by Juliette on 12/16/56 11:58

jderek@gmail.com wrote:
> HI, everyone.
>
> I don't seem to be able to access the keys in an associative array.
>
> I have a script that dynamically generates a form. The form element
> names are generated based on image filenames, so I can't just access
> them the normal way in the form handler script. I tried looping through
> the $_POST array like this:
>
> foreach ($_POST as $key=>$value)
> {
>
> echo $key.'=>'.$value.'<br>';
> }
>
> and i get this output:
>
> 0=>Pay
> 1=>Pay
> 2=>on
> 3=>on
> 4=>tn__DSC2602.jpg
> 5=>tn__DSC2603.jpg
>
> Thos numbers are where I expected to see the form element names. Can
> anyond advise me on why this is happening?
>
> Derek
>

try this and see what you get from the server, should give you a clue:

print '<pre>';
print_r( $_POST );
print '</pre>';

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация