ok here goes...
im creating a password system for a site im developing, you can see the problem by attempting to download floorman from http://members.lycos.co.uk/phppage (temporary site location). anyway, when you press the download link after entering a code (valid or invalid) i get a parse error which points to the start of my 'IF' statement.
before i post the code, heres what it should do, the code is placed in the centre of the page so all other parts of the page are in html (the menu and header etc...) anyway, the code should look to see if the password entered is equal to the correct password, if it is, a table is made and a download link appears. otherwise a different table is made and no download link appears. ok... heres the code...
<?php
$typed = "\t$_POST[attempt]\n";
$correct = "j23n377CC96q693329b8sClH";
if($typed = $correct);
<table width="475" border="0" cellspacing="0" cellpadding="0">
<tr align="center" valign="middle">
<td bgcolor="#000099" colspan="3">
<div align="center"><font face="Courier New" size="2">Floorman 2003</font></div>
</td>
</tr>
<tr align="left">
<td colspan="3" valign="top">Thank you.<br>
You may now download your chosen product by clicking <a href="j23n377CC96q693329b8sClH/FM2003.zip" class="linksheet">Here</a>.</td>
</tr>
</table>
else;
<table width="475" border="0" cellspacing="0" cellpadding="0">
<tr align="center" valign="middle">
<td bgcolor="#000099" colspan="3">
<div align="center"><font face="Courier New" size="2">Error</font></div>
</td>
</tr>
<tr align="left">
<td colspan="3" valign="top">Sorry.<br>
The code you entered was invalid. Please check you have typed a valid
code and that the code matches the chosen product.</td>
</tr>
</table>
endif;
?>
...im making the table through HTML and im guessing thats the problem? if so, how can i include HTML inside a PHP script?
thanks, i really appreciate any help you can offer. by the way, the password is supposed to be bought through a paypal account so write it down somewhere so you can download a free copy when its all working
