PHP script Problem--Please Help

Discussion in 'PHP' started by wendallb, Jul 3, 2007.

  1. #1
    My site uses PHP 5

    I installed a new script. a autoresponder script that uses smarty templates and the install went good.

    When I try to login I put in the user name and password and click login.

    Then is says "your must put in a users name go back".

    It is like the login form will not capture the users name and I am at a loss as to what to do now.

    Any Ideas?

    Thanks,
     
    wendallb, Jul 3, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Maybe it's a register_globals issue.

    Try placing this at the top of your code:
    
    <?php
    @extract($_POST);
    @extract($_GET);
    ?>
    
    PHP:
     
    nico_swd, Jul 3, 2007 IP
  3. wendallb

    wendallb Active Member

    Messages:
    180
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Thanks for the try but no go, I got a syntax error.

    here is the code in my index.php:

    <?php
    require("include/template.php");
    require("include/globals.php");

    $template = new Template("templates/signin");
    $template->set_file("tpl_signin", "signin.tpl");
    $template->parse("content", "tpl_signin");

    $template->set_file("template_main", "../index.htm");
    $template->set_var("sitename",$SiteName);

    $template->set_var("campaign","");
    $template->set_var("path","");
    $template->parse("main","template_main");
    $template->p("main");
    ?>

    Again Thanks,
     
    wendallb, Jul 3, 2007 IP
  4. SEV3N

    SEV3N Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you don't get any other erros it might be a a register_globals issue, just like nico_swd replied. Check out the cPanel for your website or maybe ask the hosting provider if you can't find any globals related options. It is pruity unusuall, the submit button sends you to the right page, the submit button is contained by a form and that form's fields don't get sended to the target page.
     
    SEV3N, Jul 3, 2007 IP
  5. wendallb

    wendallb Active Member

    Messages:
    180
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    78
    #5
    I can look at the php setup but cannot change it and the register_globals is off.

    I normally get a globals error message when that is the problem.

    Thanks,
     
    wendallb, Jul 3, 2007 IP