Site Help

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Moving to site management.
Edit:
I only see one CSS included in your HTML.

-Corey
 
Last edited:

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
IN the menustyle.css - the only one I can see you have a stray } at the top of the file.
Try removing that.

Also where is your other css file?
 

CascadesAdmin

New Member
Messages
87
Reaction score
0
Points
0
I tried merging the two together into menustyle.css but it did the same thing, Ill seperate them into to again. The other one is style.css and can still be reached.


and can someone tell me what is wrong with this register code?

PHP:
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/db_connect.php');

if($_SESSION['logged_in'] == 1)
    {
	   //REDIRECT TO HOMEPAGE
	   header('Location: http://cascades.exofire.net/index.php?a=fanclub' . $_SERVER['HTTP_HOST'] . '');
	 } else {

//BEGIN CHECKING USERNAME...
  if(!$_POST['username']) die('Alert: username field was blank.');
 //array of invalid characters
$junk = array('.' , ',' , '/' , '\'); 
			  
  //starting lenght of username
  $len = strlen($_POST['username']);
  
  //replace invalid characters
  $_POST['username'] = str_replace($junk, '', $_POST['username']);
  $test = $_POST['username'];
  
  //if lenghts are different ($len smaller), invalid characters found, so prompt error.
  if(strlen($test) != $len) {
     die('Username Error: Username contained invalid characters. You can only use A-Z, 0-9 and NOT these: <b>. , / \</b>');
  }
//Check if username already exists... 
 $q2 = mysql_query("SELECT * FROM `members` WHERE `username` = '".$_POST['username']."'");
   $q3 = mysql_fetch_object($q2);
   
    if($q3->username == $_POST['username']) {
	die('<BR><BR>Sorry, but the username "'.$q3->username.'" is taken, please choose another.');
}
  if(!$_POST['password']) {
  	 die('Error: Password field was blank');
	 }
  if(!$_POST['verify_password']) {
     die('Error: Verify Password field was blank.');
	 }
  if($_POST['password'] != $_POST['verify_password']) { 
  	 die('Error: The passwords do not match.');
	 }
  if(strlen($_POST['password']) < 6 ) {
     die('Error: Your password is too short. Must be 6 or more characters in length.');
	 } 
$insert ="INSERT INTO `members` (username, user_password, user_email) VALUES ('".$_POST['username']."', 

'".md5($_POST['password'])."', '".$_POST['email']."')";
 
 $insert2 = mysql_query($insert);
   if(!$insert2) die(mysql_error());
 
echo('Registration Successful, Welcome new member! You can now login to your new account.');

 } else {
?>

I keep getting This Message:

PHP:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/cascades/public_html/register.php on line 16
 
Last edited:

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
PHP:
$junk = array('.' , ',' , '/' , '\');
Should be
PHP:
$junk = array('.' , ',' , '/' , '\\');
\ is an escape so \\ means a literal \
 
Top