Results 1 to 2 of 2

Thread: Sign Guestbook Not Working In Xhtml

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

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


    Code:
    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&amp;sid=$sid\">Home</a>";
          echo "</p>";
          exit();
        }
        
    
        echo "<p align=\"center\">";
    echo "<form action=\"genproc.php?action=signgb&amp;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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
        echo "</p>";
        
    }
    
    
    else if($action=="online")
    {
    
      addonline(getuid_sid($sid),"Online List","");

  2. #2
    Junior Member
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Managed to fix it by adding these 2 lines :


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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Class To Make Forms Easily
    By irisblaze in forum Snippets, Functions and Classes
    Replies: 17
    Last Post: 09-06-10, 10:05
  2. Xhtml Mp Guestbook
    By cricchiwap in forum REQUEST FORUM
    Replies: 3
    Last Post: 15-10-08, 17:32
  3. Working Lavalair Xhtml Script
    By XTSX in forum Scripts Forum
    Replies: 3
    Last Post: 01-04-08, 16:39
  4. Guestbook Lavalair, 1 User Can Sign Only 1 Msg
    By malaysia in forum Coding Forum
    Replies: 6
    Last Post: 28-06-07, 20:42
  5. XHTML Tutorial
    By GumSlone in forum Tutorials
    Replies: 1
    Last Post: 08-12-05, 14:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19