RE: [PHP-WIN] 2 dimension Array...
| From: | Howard, Robert P | Date: | Fri, 20 Dec 2002 02:29:06 +0000 |
| Subject: | RE: [PHP-WIN] 2 dimension Array... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17500@lists.php.net to get a copy of this message | ||
Try changing your echo string to this:-
echo "<input type='text' name='teamName[$team]'
value='$outputstring[$team][1]'>";
This will make your code eaiser to read as well as showing when you have a
missing Quote as Dash has pointed out;
Regards,
Rob Howard
Database Technician
Canberra Deep Space Communication Complex
-----Original Message-----
From: krizz [mailto:crizz18@yahoo.com]
Sent: Friday, 20 December 2002 1:25 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] 2 dimension Array...
$outputstring is a double dimension string array and should give it's values
as "default value" in the html input text boxes. But it stops the strings in
the first space character. For example if $outputstring[2][1]=="The Cats" it
put in the text box only "The".
Any idea?
$team=0;
while ($team<$NumOfTeams)
{
echo "<input type=\"text\" name=\"teamName[$team]\" value=";
echo $outputstring[$team][1]."\">";
$team+=1;
}
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
#####################################################################################