Hey.
I'm trying to edit this so I can add a second set and even maybe a third set of check boxes so it will show up in the textfile as a new entry... Kind of like using it as a survey script so that there would be a question then the check boxes and then move onto the next set... Any suggestions how I do this?
<FORM ACTION="<?=$PHP_SELF; ?>" METHOD="post">
<INPUT TYPE=hidden NAME="write_file" VALUE="yes">
<INPUT TYPE=checkbox NAME="ckbox1" VALUE="Box 1"> Box 1<BR>
<INPUT TYPE=checkbox NAME="ckbox2" VALUE="Box 2"> Box 2<BR>
<INPUT TYPE=checkbox NAME="ckbox3" VALUE="Box 3"> Box 3<BR>
<P>
<INPUT TYPE=submit>
</FORM>
<?
if ($write_file == "yes") {
$text = $ckbox1.$ckbox2.$ckbox3;
$filename="textfile.txt";
$file = fopen($filename, "w");
fputs($file, $text);
fclose($file);
}
?>
Any help would be appreciated!
--Andrew