Having one more problem with my edit which I hope soemone can help me with. Im having trouble passing the client id on to update the record. on the edit page i have
echo "<input name = \"Client_ID\" type=\"hidden\" value=\"".$id."\">";
to pass the id to the process page
and on the process page i have:
<?php
require '../include/config.php';
id=$POST['Client_ID'];
$firstname=$POST['First_Name'];
$lastname=$_POST['Last_Name'];
if (!get_magic_quotes_gpc())
{
$firstname=addslashes($firstname);
$lastname=addslashes($lastname);
}
$sql = "update client SET
First_Name='$firstname',
Last_Name='$lastname'
where Client_ID='$id'";
$result = @($sql);
if ($result)
echo 'Record Edited Successfully';
else
echo 'Record Not Edited';
?>
If i manually change the ID the query works but this script is unable to recognize the clients ID automatically! Can someone inform me of what I am doing wrong.
Thank You