Re: Adding a particalar POST value to a string

From: Date: Mon, 02 Jun 2003 10:41:51 +0000
Subject: Re: Adding a particalar POST value to a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149780@lists.php.net to get a copy of this message
Taking into account your earlier post: $string = ''; foreach ( array_keys($_POST) as $var ) { if ( !is_empty($_POST[$var]) ) { string .= $var.' '; } } trim($string); On Monday 02 June 2003 03:22 am, Shaun wrote: > Hi, > > I have many textfields on my page. How can I add to a string the name of a > textfield that ends in the same number as another textfield i.e. 5? > > Thanks for your help.

« previous php.general (#149780) next »