Here's my problem:
I have an array with multiple values. Here's the loop that writes out the contents of the array into hidden form fields.
while (list ($key,$val) = each ($eventdate))
{
echo"<input type=\"hidden\" name=\"eventdate[".$key."]\" value=\"".$val."\">";
}
This works fine up to this point, but now I want to write those hidden form fields to a file (to create an html page):
$fp = fopen("somefile.html", "w+");
fwrite( $fp, "CONTENTS OF FILE");
But I'm not sure how. Any suggestions would be greatly appreciated. Thanks in advance for your help.