Parse Error! Help!

Discussion in 'PHP' started by 812402, May 29, 2011.

  1. #1
    Error:
    Parse error: syntax error, unexpected $end in /home/content/14/7688814/html/812/register.php on line 72

    <!DOCTYPE HTML 5>
    <head>
    <title>Register</title>
    </head>
    <body>
    </body>
    </html>
    
    <?php
    
    if(isset($_SESSION['user_id'])) {
    
    $url = 'http://812402.com/812/index.php';
     
    } else {
    
    if(isset($_POST['submitted'])) {
    
    
     if(isset($_POST['username'])) {
    
     } else {
    
     echo '<font color="red"><b>Please enter a username!</b></font color>';
    
     }
    
     if(isset($_POST['password'])) {
    
     } else {
    
     echo '<font color="red"><b>Please enter a password!</b></font color>';
    
     }
    
     if(isset($_POST['password2'])) {
    
      if($_POST['password'] == $_POST['password2']) {
    
      } else {
    
      echo '<font color="red"><b>The two passwords must match!</b></font color>';
    
      }
    
     } else {
    
     echo '<font color="red"><b>Please enter a confirming password!</b></font color>';
    
     }
    
    } else {
    
    echo '<h1>Register</h1>';
    
    };
    
    ?>
    
    
    
    <form action="register.php" method="post" action="register.php">
    
    <p align="center"><input type="text" maxlength="45" name="username" value="username"></p>
    <p align="center"><input type="password" name="password" maxlength="50" value="password"></p>
    <p align="center"><input type="password" name="password2" maxlength="50" value="confirm password"></p>
    <p align="center"><input type="text" name="email" maxlength="50" value="email"></p>
    <input type="hidden" name="submitted" value="TRUE">
    <p align="center"><input type="submit value="Join!">
    
    </form>
    
    Code (markup):
    I've looked it over and can't seem to find the problem. Could someone help?
     
    812402, May 29, 2011 IP
  2. Minimal Hank

    Minimal Hank Peon

    Messages:
    136
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Line #56 ( right before your closing PHP tag ) - you don't need a semicolon there.
     
    Minimal Hank, May 29, 2011 IP
  3. dazst

    dazst Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    78
    #3


    Change:
    echo '<h1>Register</h1>';
    
    };
    Code (markup):
    to
    echo '<h1>Register</h1>';
    
    }}
    Code (markup):
     
    dazst, May 29, 2011 IP
  4. 812402

    812402 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you dazst! Sorry, but I don't have a paypal account. (and can't get one, either)
     
    812402, May 29, 2011 IP