Log in

View Full Version : Parse error?!?!?



FoxHound10
08-08-2007, 07:54 PM
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:


<?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-:cool:

fileserverdirect
08-08-2007, 08:12 PM
You never opened your brackets in the top section. Add an opening braket after the if command.

FoxHound10
08-09-2007, 02:09 AM
hey thanks for the help its much appreciated. i'll prolly be posting more! haha:)