Wrong hidden value after clicking register.

Hi there…
After selecting any of the radio button…and click register
i was able to get the course name display on another php page.

i do a GET to check what are my hidden values
and the url always shows

http://localhost/xampp/1/conreg.php?radio=COM01&ClassSize=&HeadCount=&Submit=Register

Class size and HeadCount as no value at all…

Please help…

[code]

TimeTable

Here is the timetable

<?php @ $db = new mysqli('localhost', 'root', '', 'mylifestyle'); if (mysqli_connect_errno()) { echo 'Error: Could not connect to database. Please try again later.'; exit; } $query = "SELECT course.CourseCode, course.CourseName , course.Instructor , course.ClassSize , courseschedule.HeadCount , courseschedule.Date ,courseschedule.Time , courseschedule.Location FROM course INNER JOIN courseschedule ON course.CourseID = courseschedule.CourseID"; $result = $db->query($query); $num_results = $result->num_rows; echo ""; ?> <?php while($row = $result->fetch_assoc()) { ?> <?php } $db->close();

?>

[/code]
CourseID Course Name Instructor HeadCount Class size Date Time Location Register
<? echo $row['CourseCode']; ?> <? echo $row['CourseName']; ?> <? echo $row['Instructor']; ?> <? echo $row['HeadCount']; ?> <? echo $row['ClassSize']; ?> <? echo $row['Date']; ?> <? echo $row['Time']; ?> <? echo $row['Location']; ?> onClick='document.Submit.formVar.value='.$row['CourseName'].'>
Sponsor our Newsletter | Privacy Policy | Terms of Service