You are here: getting check box values into an array « PHP « IT news, forums, messages
getting check box values into an array

Posted by Merlin on 03/31/05 13:45

Hi there,

I am facing a problem in getting all values from a form.
There are loads of input check boxes in there which are named:
x_1, x_2 etc.

Now I want to get that post data into an array.

Somehow like this:
for ...{
$interests[] = $_POST[x_1];
}

The problem is that the script does not know how many x there are and it does
not know the number. So how to get them all?

Has anybody an idea, I am lost on that one.

Thanx for any hints,

Merlin

PS: I know that there is another way in passing the checkbox values, but due to
some JS reasons I do have to go that way.

 

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

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