Reply to Re: accessing arrays

Your name:

Reply:


Posted by Rainman on 11/23/05 03:37

> Name the list "var[]" instead of "var"...

Thanks for contributing a reply, but I cannot decode your answer. And I
still haven't found the answer to my situation.

I'm not naming anything 'var' or 'var[]'/ Rather, I'm just using the
$_GET or $_POST array to access what is supplied through GET or POST
(thus far in my code). The 'var' part comes in the querystring (or from
$_POST variables) (depending on the method I use in my form).

Are you referring to the parent page that has the form?

I tried what I think is your suggestion by doing this:

$var[] = $_GET[var]; print_r($var[]);

but this just gives me syntax errors.

Other ideas?

Mark

[Back to original 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

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