You are here: Re: break apart a variable « PHP Programming Language « IT news, forums, messages
Re: break apart a variable

Posted by Rik on 02/08/07 01:20

Curtis <zer0dyer@verizon.net> wrote:
> Let's see what you get, alter Rik's code and post the output back to
> us (if it repeats a lot, just post enough to get a look at what the
> keys look like):
>
> $hours =3D array();
>
> echo '<pre>';
> print_r($_POST); // dump all submitted POST data
> echo '</pre><br>';
>
> foreach($_POST as $key =3D> $value){
> if(preg_match('/^[0-9]+-hours$/i',$key)){

The would only be usefull if the postfields were still in the 'id-hours'=
=

format. It's now in 'hours[id]'.

So just print_r($_POST['hours']);
-- =

Rik Wasmus

 

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

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