Closed Thread Icon

Topic awaiting preservation: Action with only some registers (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12302" title="Pages that link to Topic awaiting preservation: Action with only some registers (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Action with only some registers <span class="small">(Page 1 of 1)</span>\

 
Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 06-20-2002 17:26

Hello! me, again

I have this problem, I have a page that shows all the registers in a table, and prints a check box (not vinculated to the database) with each register. I want to make the user available to select some of the register with the check box and then process something with only the selected registers.

I dunno how to process only the selected by the user with the check box. Am I Clear?

Thanks again!

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 06-20-2002 17:30

the checkboxes have to be part of a html form. give them names, then after you submit the form on the next page you have variables with the names of the checkboxes you can refer to. i dont know if its isset($checkboxname) or $checkboxname==true. try!

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 06-21-2002 10:06

grumble basically, it is w/ isset() and you can test its value so:

if (isset($checkbox1) && $checkbox1=='on') { .... }



Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 06-21-2002 10:41

Let's see:
I have this to show the table content:


<BLOCKQUOTE><FONT face="Verdana, Arial">code:</font><HR><pre>
<FORM method=POST ACTION=process.php>
<?php

echo "<table width=75% border=0 cellspacing=0 cellpadding=0 align=center>\n";
echo "<TR>\n";
echo "<TD bgColor=#926877>\n";
echo "<TABLE cellSpacing=1 cellPadding=4 width=100% border=0>\n";
include("../conex.php");
$link=Conectarse();
$query_select = "select nombre,pais,img1,thumb1,mensaje,";
$query_select .= "email,categoria,img2,thumb2,img3,thumb3,img4,thumb4,ref,id from espera ";
$result_select = mysql_query($query_select, $link);
$num_posts = mysql_num_rows($result_select);
while ($row = mysql_fetch_array($result_select)) {
if ($bgcolor == "444444") {
$bgcolor = "222222";
} else {
$bgcolor = "444444";
}
echo "<TR bgColor=#".$bgcolor.">\n";
echo "<td align=left Valign=top width=150>\n";
echo "<b>".$row[0]."</b>\n";
echo "<br>".$row[1]."\n";
echo "<br><a class=main href=".$row[5].">".$row[5]."</a>\n";
$hola = $row[14];
echo "<input type=checkbox name=checky value=$checky>\n";
echo "</td>\n";
echo "<td align=left Valign=top>Categoría:<b>".$row[6]."</b>

« BackwardsOnwards »

Show Forum Drop Down Menu