Problem with PHP discussion forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarek
    New Member
    • Nov 2006
    • 3

    Problem with PHP discussion forum

    Hi!

    I'm trying to get the discussion forum from this tutorial to work, but I have some problems. I have made a database according to the tutorial, and also turned on register_global s that this forum requires, but when I try to make a new topic and press the submit button nothing happens. I dont get an error message or anything.

    Is there anyone who got this forum to work and have any idea on what I´m doing wrong, please reply.

    Thanks in advance
    /Sarek

    PS. If you need more information on certain things in order to help me, just ask and I reply. Sry for my bad english.
  • sarek
    New Member
    • Nov 2006
    • 3

    #2
    Originally posted by sarek
    Hi!

    I'm trying to get the discussion forum from this tutorial to work, but I have some problems. I have made a database according to the tutorial, and also turned on register_global s that this forum requires, but when I try to make a new topic and press the submit button nothing happens. I dont get an error message or anything.

    Is there anyone who got this forum to work and have any idea on what I´m doing wrong, please reply.

    Thanks in advance
    /Sarek

    PS. If you need more information on certain things in order to help me, just ask and I reply. Sry for my bad english.
    Hmmm, now all of a sudden I can add a topic but when I klick on a certain topic to view it and to add a post, nothing shows up. The page view.php3 just loads and its a blank page, no errors or nothing.

    Anyone knows whats wrong?

    Comment

    • godrifle
      New Member
      • Nov 2006
      • 6

      #3
      Originally posted by sarek
      Hmmm, now all of a sudden I can add a topic but when I klick on a certain topic to view it and to add a post, nothing shows up. The page view.php3 just loads and its a blank page, no errors or nothing.

      Anyone knows whats wrong?
      Probably view.php has short PHP tags. You should replace them with full tags:

      <? should be <?php

      Also, you can eliminate the worrisome register_global s by putting the following at the top of each PHP script:

      extract($_POST) ;

      Any scripts that pass variables and values via URL (like edit-post.php, delete-post.php, and view.php) will also need:

      extract($_GET);

      This is by no means secure, but at least your server configuration hasn't been compromised while you test this script. The better approach would be to actually use the $_POST and $_GET arrays directly...

      Comment

      • sarek
        New Member
        • Nov 2006
        • 3

        #4
        Originally posted by godrifle
        Probably view.php has short PHP tags. You should replace them with full tags:

        <? should be <?php

        Also, you can eliminate the worrisome register_global s by putting the following at the top of each PHP script:

        extract($_POST) ;

        Any scripts that pass variables and values via URL (like edit-post.php, delete-post.php, and view.php) will also need:

        extract($_GET);

        This is by no means secure, but at least your server configuration hasn't been compromised while you test this script. The better approach would be to actually use the $_POST and $_GET arrays directly...
        Oh my god how blind one could be :-). You were right about the short tag in view.php, changed it and now it works. Thank you for your help, if I have another question I know who to ask ;-).

        /Sarek

        Comment

        • godrifle
          New Member
          • Nov 2006
          • 6

          #5
          Originally posted by sarek
          Oh my god how blind one could be :-). You were right about the short tag in view.php, changed it and now it works. Thank you for your help, if I have another question I know who to ask ;-).

          /Sarek
          It bites me all the time. I'm *finally* at a point where that's the first thing I check. Especially with older code.

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            Does this all mean that your probel is solved. If so, we don't have to chase some 'older' members for this.

            Ronald :cool:

            Comment

            • Chrisjc
              Contributor
              • Nov 2006
              • 375

              #7
              You can always try using

              phpBB...

              Rather nice...

              Unless you are just wanting to set things up and try it all for your self...
              But it you want a quick Forum up and easy to manage and use...

              try: http://www.phpbb.com/

              Chris

              Comment

              Working...