<input type="checkbox" name="searchStr[]" value="Where">
And on the page you submit the form too, you will be able to access this as an array...
$_POST['searchStr'] or $_GET['searchStr'], depending on the method the form was posted by.
ppf wrote:
Hi all:
I am having a problem in accessing form data from
multiple check box
of same name with different values, like this
<input type="checkbox" name="searchStr"
value="Where">
Where</td>
<td width="40%"> <input type="checkbox"
name="searchStr" value="would">
would</td>
<td width="40%"> <input type="checkbox"
name="searchStr" value="Luluk,">
Luluk,</td>
</tr><tr> <td
width="40%"> <input type="checkbox"
name="searchStr" value="Indonesian">
Indonesian</td>
<td width="40%"> ons,</td>
How can i access these multiple selected value in
same name?
I am trying to move my asp code to PHP, Thanks in advance
Prad
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php