cheers for that. how good are you with checkboxes?
see i have checkboxes next to each module that a person clicks on. the modules are pulled from the database by the person choosing a certain year of study and semester.
i want the person to click the modules they want to study and when they click register the modules chosen are displayed on a new page. heres the query
<?php
$checkboxno==1;
echo "<td><input type=checkbox name='Module". $checkboxno . "' value='". $Modname . "'";
$checkboxno++;
if ($Modtyp=='Core') {
echo " checked 'DISABLED'";
}
the checkbox number is incremented each time so you have
Module1= ABC
Module2=CDE etc.
now in another php script i can display each module with the following code
$Check = $POST['Module'];
$Check1 = $POST['Module1'];
echo".$Check."<br>";
echo".$Check1."<br>";
i havent used a select query i have just echoed each row. my problem is i have about 15 modules and with the way i have done it if a person picks the 1st module and the 8th then theres a big gap when they r displayed. how can i put this into a loop?
doi need to do a select?