Results 1 to 3 of 3

Thread: Parse error?!?!?

  1. #1
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Parse error?!?!?

    Parse error: parse error in /home/student/salmendinge/www/edittext.php on line 20

    im getting this error can anyone tell me what im doing wrong (i apologize if my coding is shotty im new at PHP).

    here's the code:
    Code:
    <?php
    $newText = $_POST["stuff"];
    if(!isset($_POST["submit"]))
    ?>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    body{background-color:#000000}
    </style>
    </head>
    
    <body>
    <form method="post" action="<?php echo $PHP_SELF;?>">
    <textarea rows="15" cols="50" name="stuff"></textarea><br/>
    <input type="submit" value="submit" name="submit">
    </form>
    <?
    } else {
    echo $newText;
    }
    ?>
    </body>
    </html>


    Thanks-

  2. #2
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    You never opened your brackets in the top section. Add an opening braket after the if command.
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  3. #3
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    hey thanks for the help its much appreciated. i'll prolly be posting more! haha

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •