chirdeep_tomar Posted January 4, 2007 Share Posted January 4, 2007 echo '<center>'; echo '<form name="serialsDetails" action="modifydetails.php" method="post">'; echo '<table border="0" cellpadding="5" cellspacing="0" class="nicetable">'; echo '<th class="nicetableheader">Serial Name</th>'; echo '<th class="nicetableheader">Serial Genre</th>'; echo '<th class="nicetableheader">Serial Day</th>'; echo '<th class="nicetableheader">Start Time (hrs)</th>'; echo '<th class="nicetableheader">End Time (hrs)</th>'; echo '<th class="nicetableheader">Serial Synopsis</th>'; echo '<th class="nicetableheader">Modify</th></tr>'; while ($rec=mysql_fetch_array($result)){; echo '<tr>'; echo '<inpyt type="hidden" id="serial_id" name="name" value="'.$serial_id.'" />'; echo '<td class="nicetablerow">'.$rec['serial_name'].'</td>'; echo '<td class="nicetablerow">'.$rec['serial_genre'].'</td>'; echo '<td class="nicetablerow">'.$rec['serial_day'].'</td>'; echo '<td class="nicetablerow">'.$rec['starting_hour'].':'.$rec['starting_minute'].' '.$rec['starting_ampm'] .'</td>'; echo '<td class="nicetablerow">'.$rec['ending_hour'].':'.$rec['ending_minute'].' '.$rec['ending_ampm'] .'</td>'; echo '<td class="nicetablerow">'.$rec['serial_synopsis'].'</td>'; echo '<td class="nicetablerow"> <input type="radio" value="'.$serial_id.'" name="hard" /></td>'; echo '</tr>'; } echo '</table><br/>'; echo '<input type="submit" value="Modify" name="" />'; echo '</form>'; echo '</center>';This code doesnt transfer the values in the items to the modify.php page.... :( Link to comment https://forums.phpfreaks.com/topic/32908-code-not-working/ Share on other sites More sharing options...
Mutley Posted January 5, 2007 Share Posted January 5, 2007 Why not open/close the PHP and have raw HTML? Like:[CODE]?><center> <form name="serialsDetails" action="modifydetails.php" method="post"> <table border="0" cellpadding="5" cellspacing="0" class="nicetable"> <th class="nicetableheader">Serial Name</th> <th class="nicetableheader">Serial Genre</th> <th class="nicetableheader">Serial Day</th> <th class="nicetableheader">Start Time (hrs)</th> <th class="nicetableheader">End Time (hrs)</th> <th class="nicetableheader">Serial Synopsis</th> <th class="nicetableheader">Modify</th></tr> <?php while ($rec=mysql_fetch_array($result)) {?> <tr> <input type="hidden" id="serial_id" name="name" value="<?=$serial_id?>" /> <td class="nicetablerow"><?=$rec['serial_name'];?></td> <td class="nicetablerow"><?=$rec['serial_genre'];?></td> <td class="nicetablerow"><?=$rec['serial_day'];?></td> <td class="nicetablerow"><?=$rec['starting_hour'];?><?=$rec['starting_minute'];?><?=$rec['starting_ampm'];?></td> <td class="nicetablerow"><?=$rec['ending_hour'];?><?=$rec['ending_minute'];?><?=$rec['ending_ampm'];?></td> <td class="nicetablerow"><?=$rec['serial_synopsis']?></td> <input type="radio" value="<?=$serial_id?>" name="hard" /></td> </tr> <?php } ?> </table> <input type="submit" value="Modify" name="" /> </form> </center><?php[/code]Anyway, you did a few parse mistakes, an open "td" field and spelt "input" as "inpyt". Check it over for typing errors. ;) Link to comment https://forums.phpfreaks.com/topic/32908-code-not-working/#findComment-153194 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.