Re: Converting a string

From: Date: Fri, 17 Mar 2006 19:10:46 +0000
Subject: Re: Converting a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232153@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] If you have similar element names in $_POST, comething like: $human_friendly = array("psFirstName" => "First Name"); foreach ($_POST as $ key => value) { echo "Cannot leave {$human_friendly[$key]} blank"; } [/snip] But I don't want to create another array, and should'nt have to
Then you should change the name of the field. Seriously, what do you expect the script to do, exactly? and once you know the answer, what would you do to achieve that? Put that (emphasis to the second question) in words and someone might be able to help you. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx

« previous php.general (#232153) next »