make a delete code
Posted: Wed Dec 23, 2009 12:51 pm
hi dears.
i have a name in mysql and i wrote this code for delete a row:
<form id="form1" name="form1" method="get" action="Delete.php"><input type="submit" name="<?php echo $name=$row["name"]; ?>" value="Delete" /></form>
i use session in my pages.
in the statistic.php, i show infos and in the delete.php i wanna delete a complete recore for example "where name= M.K_Soft". i can i distinguish the name in the code above and send it to the delete page so that i delete it?
but it doesn't work.
i just wanna send the name in the Delete.php and there i delete it and also back to the statistics.php.
please help me.
thanke you in advance.
i have a name in mysql and i wrote this code for delete a row:
<form id="form1" name="form1" method="get" action="Delete.php"><input type="submit" name="<?php echo $name=$row["name"]; ?>" value="Delete" /></form>
i use session in my pages.
in the statistic.php, i show infos and in the delete.php i wanna delete a complete recore for example "where name= M.K_Soft". i can i distinguish the name in the code above and send it to the delete page so that i delete it?
but it doesn't work.
i just wanna send the name in the Delete.php and there i delete it and also back to the statistics.php.
please help me.
thanke you in advance.