RE: Multiple checkboxes and multiple textboxes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jay,
I modified your code slightly because I am working with 152 rows and the
output would be a _lot_

This is how i modified it:

 $url=$_POST['url'];
 $txt=$_POST['txt'];

for($i = 0; $i < count($txt); $i++){
    if(("" != $url[$i]) && ("" != $txt[$i])){
//        echo $url[$i] . "&nbsp;". $txt[$i] . "\n";
        echo $i . "&nbsp;". $txt[$i] . "<br><br>\n";
    } else {
        echo "<b>".$i . "&nbsp;". $txt[$i] . "</b>\n<br>";
    }
}


I unchecked rows: 122,148,149,150

output I got:
0 0's text
1 1's text
.....etc
149 149's text
150 150's text
151 151's text
152 152's text

ideas?

Thanks,
Ryan

On 11/5/2004 9:13:43 PM, Jay Blanchard (jay.blanchard@xxxxxxxxxxxxxxxxxxxxx)
wrote:
> [snip]
>
> This didnt work, it just chops off the last x depending on how many were
>
> selected.
>
> [/snip]
>
>
>
> Hmmmmm....really? I was just able to do this with nary a problem. Chops
>
> off? Can you just echo out the results?
>
>
>
> for($i = 0; $i < count($url); $i++){
>
> if(("" != $url[$i]) && ("" != $txt[$i])){
>
> echo $url[$i] . "&nbsp;" $txt[$i] . "\n";
>
> } else {
>
> //it ain't OK
> }
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux