You are here: Re: Using checkboxes instead of a link « PHP Programming Language « IT news, forums, messages
Re: Using checkboxes instead of a link

Posted by Paul Morrison on 10/14/10 11:41

> instead of using
>><a href=\"stop_subscription.php?id=" . $row['inj_id'] .
> "\">Unsubscribe</a>
>
> use <input type="checkbox" name=deletethis[] value=" . $row['inj_id'] .
>
> where deletethis[] is an array of row id's that you pass to
> stop_subscription and delete all of the id's in the array for multiple
> id's if you only want them to do one at time then remove the [] from
> deletethis.


Hi,

I have now changed it to be

$table_rows .= "<td id=\"td\" align=\"center\" style=\" $style
;padding:5px\" ><input type="checkbox" name=deletethis[] value=" .
$row['inj_id'] . "\"></td>\n\t";

but it will not accept this, the page doesnt load. Is there something that I
am missing, or am I doing it the wrong way?

Cheers,

Paul

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация