I need help passing variables. When I do a print I see the variable display but when I try to use it my update statement dont work.
starts with page 1 I use:
print ("<td valign='top' bgcolor='$row_color'><font size='2'><a href=lginfrm1.php?logid=$variable1>$variable1</a></td>");
this brings up lginfrm1.php fine. I then have an option to make a change and update. When I make the change and select update the changes dont save.
?>
<form method="post" action="<?php echo $PHP_SELF?>">
<input type=hidden name="logid" value="<?php echo $logid ?>">
<?php
if ($submit) {
$sql = "UPDATE logins SET compl='$compl' WHERE logid='$logid'";
$result = mysql_query($sql);
If I manually set $logid=2 (or to any number)then the update will take place.
starts with page 1 I use:
print ("<td valign='top' bgcolor='$row_color'><font size='2'><a href=lginfrm1.php?logid=$variable1>$variable1</a></td>");
this brings up lginfrm1.php fine. I then have an option to make a change and update. When I make the change and select update the changes dont save.
?>
<form method="post" action="<?php echo $PHP_SELF?>">
<input type=hidden name="logid" value="<?php echo $logid ?>">
<?php
if ($submit) {
$sql = "UPDATE logins SET compl='$compl' WHERE logid='$logid'";
$result = mysql_query($sql);
If I manually set $logid=2 (or to any number)then the update will take place.