Allen,
The id number is passing ok as I can echo it in the initial part of the receiving script.
The record exists as I can perform successful update when I have Id = '1' instead of Id = $Pass.
Do I need to make this a global variable or do something else to it? Is my syntax wrong on update w/where is using a variable
Code follows:
<?
if (!$submith) {
// display form
echo $Pass;
?>
<form method="post" action="<?php echo $PHP_SELF?>">
<h3><center><font color="#9933FF">Change Individuals in Attendance</font color></center></h3>
<font color="#660066"><b>Change Individual #1:</b></font color> <input type="Text" name="Indatt1" size="30" maxlength="30"
<input type="Submit" name="submith" value="Submit Change">
<?
} else {
//process form
$db = mysql_connect....
mysql_select_db(.....
$sql="UPDATE trighdr SET Indatt2='$Indatt2' where Id='$Pass'" ;
$result=mysql_query($sql);
if ( !$result)
die ("Couldn't update: ".mysql_error());
print "<h1>Table updated ".mysql_affected_rows() .
"row(s) changed </h1><p>";
print ".mysql_error()";
}
?>
</body>