writing to file
Posted: Wed Mar 10, 2010 2:24 am
im having trouble writing to file using php
and i get the error code Parse error: parse error in C:\wamp\www\SD\Data.php on line 24 which means fwright isnt working
What am i doing wrong
Code: Select all
<table width="590" border="1">
<tr>
<td width="129">Your Name is </td>
<td width="335"><?php echo $_POST["fname"]; ?></td>
</tr>
<tr>
<td>You are</td>
<td><?php echo $_POST["age"]; ?> Years Old </td>
</tr>
<tr>
<td>Your Address is!</td>
<td><?php echo $_POST["address"]; ?></td>
</tr>
<tr>
<td height="45">Your Favroute Ice cream is</td>
<td><?php echo $_REQUEST["icecream"]; ?></td>
</tr>
</table>
<br />
Thank You for you time </td>
<?php @ $fp = fopen("data.txt", 'ab');
fwrite($fname,$age,$address,$icecream));
fclose($fp);
?>
What am i doing wrong