Actually I want to know how to access the variable
after defining it.
Like :
$query="delete from feedback where id=$delete[$i]";
            $deleteresult=mysql_query($query) or
die("Unable to delete");

But here I am not getting any value in
"$delete[$i]"-(here $i is 0,1,2,3)

So what to do to access it ?
I cant access the value even by $_POST['$delete[$i]']

Can any of you suggest me the sollution ?

Rinku
--- Torsten Roehr <[EMAIL PROTECTED]> wrote:
> "Matt M." <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > >              <TD><DIV ALIGN="CENTER"> <input
> type="checkbox" name="<?
> printf("chk_arr[%d]",$i); ?>" value="<?=$row[0]?>"
> ></DIV></TD>
> >
> > setup your checkbox something like this:
> >
> > <input type="checkbox" name="delete[]"
> value="<?=$row[0]? />
> >
> > php will treat this as an array
> 
> The closing php tag and quote of the value attribute
> was missing:
> 
> <input type="checkbox" name="delete[]" value="<?=
> $row[0] ?>" />
> 
> Regards, Torsten Roehr
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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

Reply via email to