Jump to content

BigD

Members
  • Posts

    75
  • Joined

  • Last visited

Everything posted by BigD

  1. In attached screen 1, there is a "Browse" button showed up in a wrong place. At one time It was next to the "PICTURE" row. after some modifications it ended up here. In attached screen 2, I have another PHP script coded in the same sytle but the "Browse" button is correctly placed on screen.I did not code this 2 buttons. I checked my codes, they are kind of the same. I did view source and did not see them coming from anywhere. Here is part of my code. what generated the buttons and what decided their locations? screen 1: echo "<tr><td>Last name</td><td><input type=\"text\" size=\"40\" name=\"lastname\"></td></tr>\n"; echo "<tr><td>First name</td><td><input type=\"text\" size=\"20\" name=\"firstname\"></td></tr>\n"; echo "<tr><td>Gender(M,F)</td><td><input type=\"text\" size=\"2\" name=\"gender\">"; echo " S S N(xxx-xx-xxxx)<input type=\"text\" size=\"11\" name=\"ssn\"></td></tr>\n"; echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"1024000\">\n"; echo "<tr><td>Picture</td><input type=\"file\" name=\"picture\"></td></tr>\n"; echo "<tr><td>Date of Birth (yyyy-mm-dd)</td><td><input type=\"text\" size=\"10\" name=\"dob\"></td</tr>\n"; echo "<tr><td>Address</td><td><input type=\"text\" size=\"25\" name=\"address\">"; echo " City<input type=\"text\" size=\"18\" name=\"city\">"; screen 2: echo "<tr><td>Last name</td><td><input type=\"text\" size=\"40\" name=\"lastname\"></td></tr>\n"; echo "<tr><td>First name</td><td><input type=\"text\" size=\"20\" name=\"firstname\"></td></tr>\n"; echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"1024000\">\n"; echo "<tr><td>Picture</td><td><input type=\"file\" name=\"picture\"></td></tr>\n"; echo "<tr><td>Address</td><td><input type=\"text\" size=\"30\" name=\"address\"></td</tr>\n"; echo "<tr><td>City</td><td><input type=\"text\" size=\"20\" name=\"city\"></td</tr>\n";
  2. Thanks. I will now post my question with a new topics.
  3. I want to post a question with .doc1 attachment (which is a screen shot of my PHP generated web page). After trying to attach the file, I got "You aren't permitted to upload this kind of file" message. Why? Is there another way to attach screen shot to a post?
  4. I run into another problem. While changing the 2nd piece code to a loop, I can not get grp$i translated to grp0 and grp1. Anyone following the tpoic please try the code: <html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="PUT" ACTION ="radioButton2.php"><?PHP$aray2 = $_POST['aray2'];print_r($aray2); $i = 0;while (array_shift($aray2)) {$grpp = $_REQUEST['grp$i'];echo "grpp is $grpp, \n";$i++;}?><input name="grpp" value="<?php echo $grpp; ?>" type=hidden ><input name="aray2" value="<?php echo $aray2; ?>" type=hidden ><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html>
  5. I figured it out. The problem was I have a dot in my variable names. that can create problems. I am able to pass things to a third piece of code. This is a great forum. Thanks to people who posted. Here are the codes: xxxxG:<html><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><head><title>Radio Buttons</title></head><?PHP$aray2 = array("Tom", "Jan");$i = 0;foreach ($aray2 as $key => $value){echo $value;echo "<INPUT TYPE = \"Radio\" Name =\"grp$i\" value= \"male\" >Male";echo "<INPUT TYPE = \"Radio\" Name =\"grp$i\" value= \"female\" >Female";//echo "<INPUT name = \"$grp.$i\" value = \"grp.$i\" type = hidden>";echo "\n";$i = $i + 1;echo '<input type=hidden name="aray2[]" value="'.htmlspecialchars($value).'">';}?><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></html> xxxxA:<html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="PUT" ACTION ="radioButton2.php"><?PHP$aray2 = $_POST['aray2'];$grpx = $_REQUEST['grp0'];$grpy = $_REQUEST['grp1'];echo "grp0 is $grpx, \n";echo "grp1 is $grpy. \n";print_r($aray2);?><input name="grpx" value="<?php echo $grpx; ?>" type=hidden ><input name="grpy" value="<?php echo $grpy; ?>" type=hidden ><input name="aray2" value="<?php echo $aray2; ?>" type=hidden ><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html> xxxx2<html><head><title>Radio Buttons action2</title></head><?PHP$aray3 = $_REQUEST['aray2'];$grp3 = $_REQUEST['grpx'];echo "value to next level is $grp3";?></html>
  6. I fixed the code to increment $i. On the receiving code I tried $_REQUEST['grp0'], $_REQUEST[grp1], and $_REQUEST['grp.0'],$_REQUEST['grp1']; none worked. <html><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><head><title>Radio Buttons</title></head><?PHP$aray2 = array("Tom", "Jan");$i = 0;foreach ($aray2 as $key => $value){echo $value;echo "<INPUT TYPE = \"Radio\" Name =\"grp.$i\" value= \"male\" >Male";echo "<INPUT TYPE = \"Radio\" Name =\"grp.$i\" value= \"female\" >Female";echo "\n";$i = $i + 1;echo '<input type=hidden name="aray2[]" value="'.htmlspecialchars($value).'">';}?><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></html> radioButtonA code:<html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="PUT" ACTION ="radioButton2.php"><?PHP$aray2 = $_POST['aray2'];$grpx = $_REQUEST['grp0'];$grpy = $_REQUEST['grp1'];print_r($aray2);?><input name="grpx" value="<?php echo $grpx; ?>" /><input name="grpy" value="<?php echo $grpy; ?>" /><input name="aray2" value="<?php echo $aray2; ?>" /><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html>
  7. I have a form radioButtonG passing 2 radio buttons grp1 and grp0 to code radioButtonA. I am having difficulty to receive these 2 buttons. Please help. Thanks. radioButtonG -<html><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><head><title>Radio Buttons</title></head><?PHP$aray2 = array("Tom", "Jan");$i = 0;foreach ($aray2 as $key => $value){echo $value;echo "<INPUT TYPE = \"Radio\" Name =\"grp.$i\" value= \"male\" >Male";echo "<INPUT TYPE = \"Radio\" Name =\"grp.$i\" value= \"female\" >Female";echo "\n";echo '<input type=hidden name="aray2[]" value="'.htmlspecialchars($value).'">';}?><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></html> radioButtonA -<html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="PUT" ACTION ="radioButton2.php"><?PHP$aray2 = $_POST['aray2'];$grpx = $_REQUEST['grp0'];$grpy = $_REQUEST['grp1'];print_r($aray2);?><input name="grpx" value="<?php echo $grpx; ?>" /><input name="grpy" value="<?php echo $grpy; ?>" /><input name="aray2" value="<?php echo $aray2; ?>" /><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html>
  8. I am able to pass array now. Thanks to every one who posted. Here is what I changed: xxxxF:<html><head><title>Radio Buttons</title></head><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><INPUT TYPE = 'Radio' Name ='grp1' value= 'male' >Male<INPUT TYPE = 'Radio' Name ='grp1' value= 'female' >Female<?PHP$aray2 = array("Tom", "Jan");foreach ($aray2 as $key => $value){echo '<input type=hidden name="aray2[]" value="'.htmlspecialchars($value).'">';}//$grp1 = $_REQUEST['grp1'];//<input name="grp1" value="<?php echo $grp1; ?>" />print_r($aray2);?><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></html>
  9. kanchatchai, I do not understand your post, please explain. Thanks.
  10. I made a little progress and got rid of the error message. My array was not created correctly in xxxxF. I am still not getting array passed.Here are the codes: xxxxF:<html><head><title>Radio Buttons</title></head><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><INPUT TYPE = 'Radio' Name ='grp1' value= 'male' >Male<INPUT TYPE = 'Radio' Name ='grp1' value= 'female' >Female<?PHP $aray2 = array("Tom", "Jan"); ?><input name="aray2" value="<?php echo $aray2; ?>" /><?PHPprint_r($aray2);?><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></html> xxxxA:<html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="PUT" ACTION ="radioButton2.php"><?PHP$aray2 = $_REQUEST['aray2'];$grp2 = $_REQUEST['grp1'];print_r($aray2);?><input name="grp2" value="<?php echo $grp2; ?>" /><input name="aray2" value="<?php echo $aray2; ?>" /><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html> xxxx2: I will post it once I got array passed to xxxxF correclty.
  11. Thanks Moderator, that works. I tried to pass arrays this way, got error: Notice: Undefined index: aray2 in C:\wamp\www\mschool\admin\radioButtonA.php on line 8 Call Stack Please see what is wrong. xxxxF:<html><head><title>Radio Buttons</title></head><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><INPUT TYPE = 'Radio' Name ='grp1' value= 'male' >Male<INPUT TYPE = 'Radio' Name ='grp1' value= 'female' >Female$aray2 = array("Tom", "Jan");<input name="aray2" value="<?php echo $aray2; ?>" /><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></html> xxxxA: <html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="GET" ACTION ="radioButton2.php"><?PHP$aray2 = $_REQUEST['aray2'];$grp2 = $_REQUEST['grp1'];?><input name="grp2" value="<?php echo $grp2; ?>" /><input name="aray2" value="<?php echo $aray2; ?>" /><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html> xxxx2:<html><head><title>Radio Buttons action2</title></head><?PHP$aray3 = $_REQUEST['aray2'];$grp3 = $_REQUEST['grp2'];echo "value to next level is $grp3";?></html>
  12. Sorry my code it too long. Here is a simplified version: xxxxF -> xxxxA -> xxxx2xxxx2 got this error : Notice: Undefined index: grp1 in C:\wamp\www\mschool\admin\radioButton2.php on line 8 xxxxF code :<html><head><title>Radio Buttons</title></head><body><FORM NAME ="form1" METHOD ="POST" ACTION ="radioButtonA.php"><INPUT TYPE = 'Radio' Name ='grp1' value= 'male' >Male<INPUT TYPE = 'Radio' Name ='grp1' value= 'female' >Female<P><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit"></FORM></body></html> xxxxA code:<html><head><title>Radio Buttons action</title></head><FORM NAME ="form2" METHOD ="POST" ACTION ="radioButton2.php"><?PHP$grp1 = $_REQUEST['grp1'];?><INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Next"></FORM></html> xxxx2 code:<html><head><title>Radio Buttons action2</title></head><?PHP$grp1 = $_REQUEST['grp1'];echo "value to next level is $grp1";?></html>
  13. I figured it out. I have to create unique group names for each row of radiu buttons. here is the code: <form action="addattn.php" method="post"><?php include("../mylibrary/login.php"); login(); $ldate = $_REQUEST['ldate']; $cname = $_REQUEST['cname']; echo "Attendance for $cname on $ldate\n"; echo "<table width=\"100%\" cellpadding=\"1\" border=\"1\">\n"; echo "<tr><td><b>Last Name</b></td><td><b>First Name</b></td><td><b>Attending Status</b></td></tr>\n"; $classid = $_REQUEST['cat']; $query = "SELECT lastname, firstname, stdid"; $query .= " FROM student"; $query .= " where classid = $classid"; $query .= " order by lastname"; $result = mysql_query($query); if (!$result) echo "<h2>SQL error</h2>\n". mysql_error(); $i = 0; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $lastname = $row['lastname']; $firstname = $row['firstname']; $stdid = $row['stdid']; echo "<tr><td>$lastname</td><td>$firstname</td>"; $absent_status = 'unchecked'; $partiallyThere_status = 'unchecked'; $present_status = 'checked'; $hours= 3.5; $atnstd[$i] = $stdid; echo "<td><input type=\"radio\" name=\"group.$i\" value=\"1\" checked> Present</td>"; echo "<td><input type=\"radio\" name=\"group.$i\" value=\"Absent\" > Absent</td>"; echo "<td><input type=\"radio\" name=\"group.$i\" value=\"PartialPresent, enter attended hours:\"> Partially there, hours attended:</td>"; echo "<td><input type=\"text\" name=\"phour\" size=\"4\"></td>"; if (isset($_POST['phour'])) { $selected_radio = $_POST['gender']; if ($selected_radio == 'absent') {$hours = 0; $absent_status = 'checked'; } else if ($selected_radio == 'partiallyThere') {$hours = $phour; $partiallyThere_status = 'checked'; } else if ($selected_radio == 'present') {$hours= 3.5; $present_status = 'checked'; } } $atnhrs[$i] = $hours; $i = $i +1; print_r($atnhrs); } echo "</table>\n";?><input type="submit" name="button" value="update"></form>
  14. BigD

    syntax error

    Thanks Don, that was it.
  15. I have a form calling another form, the 2nd form calls a php code to process something. variables are passed between these 3 pieces of code. The 2nd form receives variables passed to it OK.The 2nd form creates 2 arrays and passes arrays and variables to the 3rd piece. It seems the 3rd piece PHP code can not get variables ans arrays passed from the 2nd form at all. 1st piece(doattendance):<h2>Attendance for : </h2><form action="enterattendance.php" method="post">//<input type="hidden" name="content" value="quarterly"><table width="100%" cellpadding="1" border="1"><?php echo "<tr><td>See all Classes</td>\n"; echo "<td><select name=\"cat\">\n"; $query="SELECT classid,classname from class"; $result=mysql_query($query); while($row=mysql_fetch_array($result,MYSQL_ASSOC)) { $classid = $row['classid']; $classname = $row['classname']; echo "<option value=\"$classid\">$classname</option>\n"; } echo "</select></td></tr>\n";?><tr><td>Enter lesson date (mm/dd/yyyy):</td><td><input type="text" name="ldate" size="10"></td></tr><tr><td>Enter course name (M28,APP17,K10,...):</td><td><input type="text" name="cname" size="8"></td></tr><tr><td>Enter Credit Hours (3.5 or less):</td><td><input type="text" name="chour" size="4" value="3.5"></td></tr></table><input type="submit" name="button" value="Enter Hours"></form> 2nd piece(enterattendance):<form action="addattn.php" method="post"><?php include("../mylibrary/login.php"); login(); $ldate = $_REQUEST['ldate']; $cname = $_REQUEST['cname']; echo "Attendance for $cname on $ldate\n"; echo "<table width=\"100%\" cellpadding=\"1\" border=\"1\">\n"; echo "<tr><td><b>Last Name</b></td><td><b>First Name</b></td><td><b>Attending Status</b></td></tr>\n"; $classid = $_REQUEST['cat']; $query = "SELECT lastname, firstname, stdid"; $query .= " FROM student"; $query .= " where classid = $classid"; $query .= " order by lastname"; $result = mysql_query($query); if (!$result) echo "<h2>SQL error</h2>\n". mysql_error(); $i = 0; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $lastname = $row['lastname']; $firstname = $row['firstname']; $stdid = $row['stdid']; echo "<tr><td>$lastname</td><td>$firstname</td>"; $absent_status = 'unchecked'; $partiallyThere_status = 'unchecked'; $present_status = 'checked'; $hours= 3.5; $atnstd[$i] = $stdid; echo "<td><input type=\"radio\" name=\"group.$i\" value=\"1\" checked> Present</td>"; echo "<td><input type=\"radio\" name=\"group.$i\" value=\"Absent\" > Absent</td>"; echo "<td><input type=\"radio\" name=\"group.$i\" value=\"PartialPresent, enter attended hours:\"> Partially there, hours attended:</td>"; echo "<td><input type=\"text\" name=\"phour\" size=\"4\"></td>"; if (isset($_POST['phour'])) { $selected_radio = $_POST['gender']; if ($selected_radio == 'absent') {$hours = 0; $absent_status = 'checked'; } else if ($selected_radio == 'partiallyThere') {$hours = $phour; $partiallyThere_status = 'checked'; } else if ($selected_radio == 'present') {$hours= 3.5; $present_status = 'checked'; } } $atnhrs[$i] = $hours; $i = $i +1; print_r($atnhrs); } echo "</table>\n";?><input type="submit" name="button" value="update"></form> 3rd piece(addattn):<?php $ldate2 = $_REQUEST['ldate']; $cname = $_REQUEST['cname']; $atnstd = $_POST['atnstd']; $atnhrs = $_POST['atnhrs']; $classid = $_REQUEST['classid'];// $cname = $_POST['cname'];// $ldate = $_POST['ldate']; $stdid = array_shift($atnstd); $hours = array_shift($atnhrs);print_r ($atnhrs); print_r ($atnstd); if (trim($cname) =='') echo "<h2>Course Name can not be blank</h2?\n"; else { if (trim($ldate) =='') echo "<h2>Lesson Date can not be blank</h2?\n"; else { $query="INSERT INTO attendance( classid, stdid, attenddate, hoursearned) VALUES ('$classid', '$stdid', '$ldate', '$hours')"; $result=mysql_query($query);// echo "insert result is $result\n"; if (!$result) { echo "<h2>Problem adding hours</h2>\n"; }else echo "<h2>attending hours added</h2>\n"; } } //}?>
  16. BigD

    syntax error

    The following code has syntax error, parse error on last line. If you have sharp eyes, please take a look:error is - unexpected $end <?php include("../mylibrary/login.php"); login(); echo "<table width=\"100%\" cellpadding=\"1\" border=\"1\">\n"; echo "<tr><td><b>Last Name</b></td><td><b>First Name</b></td><td><b>Attending Status</b></td></tr>\n"; $classname = $_REQUEST['classname']; $ldate = $_REQUEST['ldate']; $cname = $_REQUEST['cname']; $chour = $_REQUEST['chour']; $query = "SELECT classid "; $query .= " from class "; $query .= " where classname = '$classname'"; $result = mysql_query($query); if (!$result) echo "<h2>SQL error</h2>\n". mysql_error(); $row = mysql_fetch_array($result, MYSQL_ASSOC); $classid = $row['classid']; $query = "SELECT lastname, firstname "; $query .= " FROM student"; $query .= " where classid = $classid"; $query .= " order by lastname"; $result = mysql_query($query); if (!$result) echo "<h2>SQL error</h2>\n". mysql_error(); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $lastname = $row['lastname']; $firstname = $row['firstname']; echo "<tr><td>$lastname</td><td>$firstname</td>"; $absent_status = 'unchecked'; $partiallyThere_status = 'unchecked'; $present_status = 'checked'; if (isset($_POST['phour'])) { $selected_radio = $_POST['gender']; if ($selected_radio == 'absent') { $absent_status = 'checked'; } else if ($selected_radio == 'partiallyThere') { $partiallyThere_status = 'checked'; } else if ($selected_radio == 'present') { $present_status = 'checked'; } echo "<td><input type=\"radio\" name=\"group1\" value=\"1\" checked> Present</td>"; echo "<td><input type=\"radio\" name=\"group1\" value=\"Absent\" > Absent</td>"; echo "<td><input type=\"radio\" name=\"group1\" value=\"PartialPresent\"> Partially there</td>"; echo "<td><input type=\"text\" name=\"phour\" size=\"4\"></td>"; } echo "</table>\n";?>
  17. Here is the FORM that calls for the PHP code I posted earlier: <h2>Attendance for : </h2><form action="enterattendance.php" method="post"><input type="hidden" name="content" value="quarterly"><table width="100%" cellpadding="1" border="1"> echo "<tr><td>Class</td>\n"; echo "<td><select name=\"cat\">\n"; $query="SELECT classid,classname from class"; $result=mysql_query($query); while($row=mysql_fetch_array($result,MYSQL_ASSOC)) { $classid = $row['classid']; $classname = $row['classname']; echo "<option value=\"$classid\">$classname</option>\n"; } echo "</select></td></tr>\n";//<tr><td>Enter class name (Winter 2011 Night MTTH):</td>//<td><input type="text" name="classname" size="22"></td></tr><tr><td>Enter lesson date (mm/dd/yyyy):</td><td><input type="text" name="ldate" size="10"></td></tr><tr><td>Enter course name (M28,APP17,K10,...):</td><td><input type="text" name="cname" size="8"></td></tr><tr><td>Enter Credit Hours (3.5 or less):</td><td><input type="text" name="chour" size="4" value="3.5"></td></tr></table><input type="submit" name="button" value="Enter Hours"></form>
  18. I want to display a table with 3rd column a radio buttom. Could not figure out this bug in my code. Please help. See attachment. or the displayed code below: <?php include("../mylibrary/login.php"); login(); // attach to DB echo "<table width=\"100%\" cellpadding=\"1\" border=\"1\">\n";// echo "<tr><td colspan=\"4\"><b>Students in this lesson "</b></td></tr>\n";<- something wrong here echo "<tr><td><b>Last Name</b></td><td><b>First Name</b></td><td><b>Attending Status</b></td></tr>\n"; $classname = $_REQUEST['classname']; $ldate = $_REQUEST['ldate']; $cname = $_REQUEST['cname']; $chour = $_REQUEST['chour']; $query = "SELECT classid "; $query .= " from class "; $query .= " where classname = '$classname'"; // echo "class is $classname\n<br>";// echo "SQL is $query\n"; $result = mysql_query($query);//if (!$result) echo "<h2>SQL error</h2>\n". mysql_error(); $row = mysql_fetch_array($result, MYSQL_ASSOC); $classid = $row['classid']; // echo " classid fetched is $classid\n"; // $classid = 7; $query = "SELECT lastname, firstname "; $query .= " FROM student"; $query .= " where classid = $classid"; $query .= " order by lastname"; $result = mysql_query($query); if (!$result) echo "<h2>SQL error</h2>\n". mysql_error(); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $lastname = $row['lastname']; $firstname = $row['firstname']; echo "<tr><td>$lastname</td><td>$firstname</td>"; $absent_status = 'unchecked'; $partiallyThere_status = 'unchecked'; $present_status = 'checked'; if (isset($_POST['phour'])) { $selected_radio = $_POST['gender']; if ($selected_radio == 'absent') { $absent_status = 'checked'; } else if ($selected_radio == 'partiallyThere') { $partiallyThere_status = 'checked'; } else if ($selected_radio == 'present') { $present_status = 'checked'; } }// <body>//<FORM NAME ="form1" METHOD ="POST" ACTION ="radioButton.php">//echo "<td>//<INPUT TYPE = 'Radio' Name ='gender' value= 'present' <?PHP print $present_status; ?>>Present//<INPUT TYPE = 'Radio' Name ='gender' value= 'absent' <?PHP print $absent_status; ?>>absent//<INPUT TYPE = 'Radio' Name ='gender' value= 'partiallyThere' <?PHP print $partiallyThere_status; ?>>partiallyThere,// Hours in class//<INPUT TYPE = "text" Name = "phour" size = 4 ></td>";//<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Submit">//</FORM>//</body>// echo "<form action=\"updtattd.php\" method=\"post\">\n";// echo " <h2>Class: $classname </h2> <br>";// echo "<h2>Lesson Name: $cname </h2> <br>";// echo "<h2>Lesson Date: $ldate </h2> <br>";// echo "<h2>Credit Hours: $chour </h2> <br>"; echo "<td><input type=\"radio\" name=\"group1\" value=\"1\" checked> Present</td>"; echo "<td><input type=\"radio\" name=\"group1\" value=\"Absent\" > Absent</td>"; echo "<td><input type=\"radio\" name=\"group1\" value=\"PartialPresent\"> Partially there</td>"; echo "<td><input type=\"text\" name=\"phour\" size=\"4\"></td>";// echo "</form>"; //?>//\n"; echo "</table>\n";}?>
×
×
  • Create New...