im trying to write to an htm doc, which will be generated from PHP like so;
Code: Select all
// check if pass is correct
$sp = $_GETї'name'];
$perm = $_GETї'pass'];
if(!$sp) {
echo "We're sorry... you must enter a name to login.";
} else {
if($perm == "0"){ //if it's ALL good move to main
//opens file for writing
$fp = fopen("".$sp.".htm","a+");
//write string to htm file
fwrite($fp, $sp);
fclose($fp);if I can get a confirmation on this one question I feel like I could wing the rest...
so, is it correct to do this:
Code: Select all
fwrite($fp, $sp);
echo "<div style="blah" etc...>";
echo "etc...";
fclose($fp);thanks in advance