Hi everyone,
I have a form in "test.php" which I want to process in "test1.php".
test.php is the following:
I can change the data in test's text boxes as I wish but do the changes take place?
Because "test1.php" when activated by clicking the link, shows the original values !
I think that if I sent data wherby a "Submit" button' changes would take place but I try to do it without a Submit button.
Is that possible ? How?
Thanks !
I have a form in "test.php" which I want to process in "test1.php".
test.php is the following:
Code:
<!DOCTYPE html>
<html>
<head>
<title>Update Records In MYSQL Database Using PHP</title>
</head>
<body>
<!--connecting to database-->
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th> </th>
</tr>
<?php
while($row = mysqli_fetch_array($records))
{
echo "<tr><form action = 'test1.php' method = 'GET'>";
echo "<td><input type = 'text' name = 'mkt_id' value = '".$row['id']."'></td>";
echo "<td><input type = 'text' name = 'mkt_name' value = '".$row['name']."'></td>";
echo "<td><a href='test1.php?edit_task=".$row['id']."'>edit</a></td>";
echo "</form></tr>";
}
?>
</table>
</body>
</html>
Because "test1.php" when activated by clicking the link, shows the original values !
Code:
<?php
echo $_GET["edit_task"];
?>
Is that possible ? How?
Thanks !