what I want it to do is code html to a page and replace certain parts with info someone puts in, and then redirects them after the code is done... (should be simple for most of you).
- Code: Select all
$myFile = "memberlist.html";
$fh = fopen($myFile, 'a') or die("ERROR!");
$stringData1 = ("<br /><div class=\"conthead style2\">");
$enddiv = ("</span></Div><br>\n");
$stringData2 = ("<div class=\"fixcont\"><span class=\"style2\"\><b>Rank:</b> Member<br><b>Character Names:</b> ");
$stringData3 = ("<br><b>Email:</b> ");
$stringData4 = ("<br><b>AIM/YAHOO/MSN:</b> ");
$stringData5 = ("<br><b>Self-Comment:</b> ");
fwrite($fh, $stringData1);
fwrite($fh, $_POST['name']);
fwrite($fh, $stringData2);
fwrite($fh, $_POST['Characters']);
fwrite($fh, $stringData3);
fwrite($fh, $_POST['email']);
fwrite($fh, $stringData4);
fwrite($fh, $_POST['IM']);
fwrite($fh, $stringData5);
fwrite($fh, $_POST['comment']);
fwrite($fh, $enddiv);
fclose($fh);


