Sign Guestbook Not Working In Xhtml

Started on the old forum in April 2007 · view the original in the archive · old links redirect here

1 reply · 4,096 views · started 19 years ago · 1 min read

Guest #1

Why does this sign guestbook not work ? it goes through the process etc but does not update

else if($action=="signgb")
{
$who=$_GET["who"];
addonline(getuid_sid($sid),"Signing Users guestbook","");
if(!cansigngb(getuid_sid($sid), $who))
    {

      echo "<p align=\"center\">";
      echo "You cant Sign this user guestbook

";
      echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
      echo "</p>";
      exit();
    }
    

    echo "<p align=\"center\">";
echo "<form action=\"genproc.php?action=signgb&sid=$sid\" method=\"post\">";
    echo "Text:<input name=\"msgtxt\" maxlength=\"500\"/>
";
echo "<input type=\"submit\" value=\"GO\"/>";
            echo "</form>";

         echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
    echo "</p>";
    
}

else if($action=="online")
{

  addonline(getuid_sid($sid),"Online List","");
Guest #2

Managed to fix it by adding these 2 lines :

echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
         echo "<input type=\"hidden\" name=\"uid\" value=\"$sid\"/>";

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close