Hi, I need some help,can i use input type="button" when deleting data in my database, Okay,this is how i made my code,i displayed all the records in the database using the Table,and i am using PDO.what i want is to click the delete button and this will redirect to the goDelete.phpand my problem in goDelete.php is i cannot displayed the idno and the name.Can you help me on this.Thank you in advance.
while($fld = $count->fetch(PDO::FETCH_OBJ)) { ...... echo '<td>'.$fld->idno.'</td>'; echo '<td>'.$fld->Name.'</td>'; echo '<td><input type="button" name="delete" value="Delete" onclick="delete()"> </input></td>';}
my script
function delete(){ window.location.href="goDelete.php";}