Hi vividona and thanks for keeping in touch,
I made a few changes to my coding and now all the values are getting transfered to the page where I have the update, but is not updating anything. I already added an echo option to see the values that I'm sending to the other page and I can see them very well. What I don't understand is why is not updating.
I'm sending you the new code to see if you can please help me the way I have it now.
This is the form where I show the values that I bring from my database:
require("mydatabase.php");
$id_fromclick=$_GET['id'];
$sql = "Select * from $tbl_name where id=$id_fromclick";
/*$sql="Select * from $tbl_name where id=$id_fromclick";*/
$result=mysql_query($sql) or die(mysql_error());
<form action="row_toedit.php" method="post" name="form1">
<table width="90%" height="193" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td><table width="100%" height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="19%"> </td>
<td width="2%"> </td>
<td width="79%"><div align="right"><strong><a href="logmeout.php">
<input name="id" type="hidden" id="id" value="<?PHP echo $id_fromclick ?>" />
Log Out</a></strong></div></td>
</tr>
<?php $rows=mysql_fetch_array($result) ?>
<tr>
<td>Event Post Title</td>
<td><div align="center">:</div></td>
<td><input name="tittle" type="text" id="tittle" size="37" value="<?PHP echo $rows['tittle']; ?>"/></td>
</tr>
<tr>
<td>Your Name</td>
<td><div align="center">:</div></td>
<td><input name="author" type="text" id="author" size="37" value="<?PHP echo $rows['author']; ?>"/></td>
</tr>
<tr>
<td valign="top">Your Post</td>
<td valign="top"><div align="center">:</div></td>
<td><textarea name="post" cols="45" rows="12" id="post"><?PHP echo $rows['post']; ?></textarea></td>
</tr>
<tr>
<td>Date</td>
<td><div align="center">:</div></td>
<td><input name="date" type="text" id="date" size="37" value="<?PHP echo $rows['date']; ?>"/></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="submit" id="submit" value="Update Sport" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
This is the other php page where I have my update script:
require("mydatabase.php");
$id_fromclick=$_POST['id'];
$tittle=$_POST['tittle'];
$author=$_POST['author'];
$post=$_POST['post'];
$date=$_POST['date'];
$query="UPDATE mydatabase SET tittle='$tittle',author='$author',post='$post',date='$date' WHERE id = '$id_fromclick'";
mysql_query($query);
mysql_close();