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 noone on 11/18/79 11:41

Paul Morrison wrote:

>> 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


reformated for readability

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


hopefully I got all of the missing quotes and dots.

 

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

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