View Full Version : i keep getting an error and i dont know where to find it.

11-05-2003, 08:45 PM
okay, im new to php. im trying to make something where when they fill in the box and click submit, it adds to a list on underneath. first off i was trying to figure out how to make one thing post underneath when you click the submit button. I have tried one thing but keep getting an error. It says somethings on line 8 but where to i count from. Also how can i make this work.

heres the error message that i get:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /data/hosted/bookworm87/test.php on line 8

heres the code that i used


<form method="get" action="/test.php>
<input type="text" name="text">
<input type=submit />

<?php echo "$_GET["text"]; ?>


11-05-2003, 08:57 PM
<?php echo $_GET["text"]; ?>

11-05-2003, 09:12 PM
whats wrong with that part. why does it give the error

11-05-2003, 09:38 PM
you did:

<?php echo "$_GET["text"]; ?>


<?php echo $_GET["text"]; ?>, without the "

11-06-2003, 03:44 PM