I have this form set up:
<form method=POST action=add_entry.php>
<TABLE bgcolor=blue>
<?php
include ('ab.txt');
echo ("
<tr>
<td><input type=text name=\"brackets[0]\" value=$brackets[0]></td>
<td> </td><td> </td><td> </td>
</tr>
<tr>
<td><input type=text name=\"brackets[2]\" value=$brackets[2]></td>
<td> </td><td> </td><td> </td>
</tr>
");
?>
<input type="submit" value="Go!">
</TABLE>
</FORM>
then in add_entry.php I have this coding:
<?php
$datafile = "ab.txt";
$data = array("$brackets[0]", "$brackets[2]");
$fd = @fopen("$datafile","w") or die ("I/O error");
fwrite($fd,$data);
fclose($fd);
?>
but all i get in return in ab.txt is the word "Array". Is there a way I can get this
array("$brackets[0]", "$brackets[2]"); with all the varibles in it? Please help, thanks.
-MrDanny