Hi all
I'm having a slight little problem .. I can't seem to solve..
I have a multiple select form .. that i select mutiple options from and then it
creates a variable called $select
now if I display $select .. I only get the last selected value .. here foloows test
code..
?
if
;Other\"Other...
/selectbr
input type=\"submit\" name=\"send\" value=\"test\"
/form
";
}else{
///count array
$num = count($select);
file://loop through array
for($i = 0;$i $num;$i++){
print $select[$i] . "br";
}
}
?
- Original Mess
OR
printf ("input type=\"hidden\" name=\"select\" value=\"%s\"",
$select);
HTH
Jon
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2001 12:27
To: Adrian Murphy
Cc: PHP list
Subject: Re: [
on Haworth
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP] multple select forms... going to hit my head against
a wall ..
u ... $select is an array .. so echo $select will just produce
"array" ..
On Tue, Jan 23, 2001 at 12:44:20PM -, Jon Haworth wrote:
Try either:
?
= explode( "||",
$user_selections );
to put it into an array again.
-J
- Original Message -
From: [EMAIL PROTECTED]
To: "Adrian Murphy" [EMAIL PROTECTED]
Cc: "PHP list" [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 1:26 PM
Subject: Re: [PHP] multple select form
5 matches
Mail list logo