PDA

View Full Version : php error


zmerz145
01-12-2008, 05:36 PM
I am getting a syntax error saying:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/waigo/public_html/register.php on line 115

Here is the code:

<div align="center">
<input type="submit" name="submit" value="Register" /></div>
<input type="hidden" name="submitted" value="TRUE" />
</form>
<?php // Include the HTML footer.
Line 115 include ('footer.html');
?>

Please advise me where I screwed up.

zmerz145
01-12-2008, 05:45 PM
I found where the error was coming from. I accidently put a ' instead of a ;.

erisco
01-13-2008, 08:41 AM
When posting php code on this forum be sure to wrap it in [php] and [/php] tags. That way it is highlighted.

<?php
// This is a comment
echo 'Hello World';
?>

It makes things a lot easier to read. Also make sure that you directly copy the source of your real script. Do not retype it.