Hi,
I want to use fopen and fwrite to write a html file for user send info and this info will be stored in a txt file.
<?php
$address = "address.data";
function displayAdress($address) {
$file = fopen("$address", "w");
fwrite($file);
fclose($file);
}
displayAddress($address);
?>
However, the info submitted by html form could not be recorded in address.data file.
What's wrong with the code?
Thanks
gogo