+ Reply to Thread
Results 1 to 5 of 5

Thread: Site Help

  1. #1
    CascadesAdmin is offline x10Hosting Member CascadesAdmin is an unknown quantity at this point
    Join Date
    Jun 2007
    Posts
    87

    Site Help

    Need lots of help with my site. I am trying to use two different CSS's and I cant get them to work together.

    http://cascades.exofire.net

    Please help
    Last edited by CascadesAdmin; 07-05-2007 at 01:36 PM.

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: Site Help

    Moving to site management.
    Edit:
    I only see one CSS included in your HTML.

    -Corey
    Last edited by Corey; 07-05-2007 at 01:47 PM. Reason: Automerged Doublepost

  3. #3
    lambada's Avatar
    lambada is offline x10 Elder lambada is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    Caister, Gt Yarmouth, Norfolk, ENGLAND
    Posts
    1,222

    Re: Site Help

    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?
    Lambada - the former Account Manager (before I resigned)




  4. #4
    CascadesAdmin is offline x10Hosting Member CascadesAdmin is an unknown quantity at this point
    Join Date
    Jun 2007
    Posts
    87

    Re: Site Help

    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 Code:
    <?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 ErrorUsername contained invalid charactersYou can only use A-Z0-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>Sorrybut the username "'.$q3->username.'" is takenplease choose another.');
    }
      if(!$_POST['
    password']) {
           die('
    ErrorPassword field was blank');
         }
      if(!$_POST['
    verify_password']) {
         die('
    ErrorVerify Password field was blank.');
         }
      if($_POST['
    password'] != $_POST['verify_password']) { 
           die('
    ErrorThe passwords do not match.');
         }
      if(strlen($_POST['
    password']) < 6 ) {
         die('
    ErrorYour password is too shortMust 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 SuccessfulWelcome new memberYou can now login to your new account.');

     } else {
    ?>
    I keep getting This Message:

    PHP Code:
    Parse errorsyntax errorunexpected T_STRINGexpecting ')' in /home/cascades/public_html/register.php on line 16 
    Last edited by CascadesAdmin; 07-06-2007 at 09:24 AM.

  5. #5
    lambada's Avatar
    lambada is offline x10 Elder lambada is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    Caister, Gt Yarmouth, Norfolk, ENGLAND
    Posts
    1,222

    Re: Site Help

    PHP Code:
    $junk = array('.' ',' '/' '\'); 
    Should be
    PHP Code:
    $junk = array('.' ',' '/' '\\'); 
    \ is an escape so \\ means a literal \
    Lambada - the former Account Manager (before I resigned)




+ Reply to Thread

Similar Threads

  1. Link Exchange
    By Conor in forum Scripts & 3rd Party Apps
    Replies: 117
    Last Post: 12-09-2007, 12:20 PM
  2. New Site: Fresh, New Site Not Even Created Yet
    By DrewC in forum Scripts & 3rd Party Apps
    Replies: 22
    Last Post: 11-15-2007, 12:45 AM
  3. Unable To Get On My Site
    By jackaroo in forum Free Hosting
    Replies: 2
    Last Post: 10-30-2005, 11:39 AM
  4. My site doesn't work
    By smartcracker in forum Free Hosting
    Replies: 1
    Last Post: 10-30-2005, 02:13 AM
  5. Still a problem/error with my site
    By Maryse in forum Free Hosting
    Replies: 0
    Last Post: 07-07-2005, 06:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers