Menu

sign up form help

Help
capt
2008-12-20
2013-06-03
  • capt

    capt - 2008-12-20

    i got the form from here the form looks good but when i enter info then hit submit to sign-up i get this message in my browser, help me please, thnx

    Warning: include(config.inc.php) [function.include]: failed to open stream: No such file or directory in /home5/captwell/public_html/signupprocessor.php on line 7

    Warning: include() [function.include]: Failed opening 'config.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home5/captwell/public_html/signupprocessor.php on line 7

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'captwell'@'localhost' (using password: NO) in /home5/captwell/public_html/signupprocessor.php on line 8
    Could not connect to database: Access denied for user 'captwell'@'localhost' (using password: NO)

    \\\this is the code in the signupprocess.php ////

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    session_start();
    if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
    include("config.inc.php");
    $link = mysql_connect($db_host,$db_user,$db_pass);
    if(!$link) die ('Could not connect to database: '.mysql_error());
    mysql_select_db($db_name,$link);
    $query = "INSERT into `".$db_table."` (username,password,confirmpassword,email) VALUES ('" . $_POST['username'] . "','" . $_POST['password'] . "','" . $_POST['confirmpassword'] . "','" . $_POST['email'] . "')";
    mysql_query($query);
    mysql_close($link);

    include("signupconfirm.html");
    }
    else {
    echo "Invalid Captcha String.";
    }

    ?>

     
    • TNTEverett

      TNTEverett - 2008-12-25

      include("config.inc.php");

      There is no path information here so the config file needs to be in the same location as the processor file. 

      using password: NO

      This is not typically allowed for security reasons. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.