I could not figure out how to pass data to next page. Here is my code. I hope someone who can help me with it. I am trying tp pass id=$_get. Can someone look at the code and tell me what I do wrong. I am kind of new on this.
member.php
<HTML>
<HEAD>
<TITLE> Member List </TITLE>
</HEAD>
<BODY>
<FORM>
<?php
include ('dbc.php');
if ($db) {
//$SQL = "SELECT * FROM member";
$result = mysql_query("SELECT * FROM member");
echo "<table border='1'>
<tr>
<th>ID</th>
<th>First Name</th>
<th>Maiden Name</th>
<th>Last Name</th>
<th>Month (start)</th>
<th>Year (start)</th>
<th>Month (end)</th>
<th>Year (end)</th>
<th>Edit/Update</th>
</tr>
";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . $row . " </td>";
echo "<td>" . "<a href=\"edit_update.php?id=\" " . $row . ">Edit/Update</a>" . "</td>";
}
echo "</tr>";
echo "</table>";
}
else {
echo "Database NOT Found ";
}
mysql_close($link) ;
?>
</FORM>
</BODY>
</HTML>
edit_update.php
<?php
include ('dbc.php');
$id=$_GET;
// Retrieve data from database
$sql="SELECT * FROM $tbl_name WHERE id='$id'";
$result=mysql_query($sql);
$rows=mysql_fetch_array($result);
?>
<table width="400" border="0" cellspacing="1" cellpadding="0">
<tr>
<form name="form1" method="post" action="update_ac.php">
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td> </td>
<td colspan="3"><strong>Update data in mysql</strong> </td>
</tr>
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center"> </td>
</tr>
<tr>
<td align="center"> </td>
<td align="center"><strong>First Name</strong></td>
<td align="center"><strong>Maiden Name</strong></td>
<td align="center"><strong>Last Name</strong></td>
</tr>
<tr>
<td> </td>
<td align="center"><input name="first_name" type="text" id="first_name" value="<? echo $rows; ?>"></td>
<td align="center"><input name="Maiden_name" type="text" id="Maiden_name" value="<? echo $rows; ?>" size="15"></td>
<td><input name="last_name" type="text" id="last_name" value="<? echo $rows; ?>" size="15"></td>
</tr>
<tr>
<td> </td>
<td><input name="id" type="hidden" id="id" value="<? echo $rows; ?>"></td>
<td align="center"><input type="submit" name="Submit" value="Submit"></td>
<td> </td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<?
// close connection
mysql_close();
?>