Jump to content

ERM mail function not working, not sure why, HELP!


Mythic Fr0st

Recommended Posts

Ok, I've setup my signup page nicely :), now after I click it, it links to the next page, being the "Mail your activation code & details to your e-mail"

now I keep getting

Parse error: parse error, expecting `'('' in c:\program files\easyphp1-8\www\test\youhavebeene-mailed.php on line 14

This is the code

[code]<head>
<style type="text/css">
body
{
background-image:
url('SilverBG.jpg')
}
</style>
</head>
<body>
<?php

if $_POSTED['pw1']==$_POSTED['pw2']
{
}


?>
</body>
</html>[/code]

Note, I'm slowly re-adding things to detail with prob 1 by 1
[code]<head>
<style type="text/css">
body
{
background-image:
url('SilverBG.jpg')
}
</style>
</head>
<body>
<?php

if ($_POST['pw1'] == $_POST['pw2'])
{
}


?>
</body>
</html>
[/code]

You missed the () around the IF statement, and its $_POST not $_POSTED. Id recommend using an IDE like Zend Developer to limit errors and detect errors.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.