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)
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.";
}
?>
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.