I have a form in an admin. This admin is for code challenged people 🙂
3 text fields Post fine, but the important
<TEXTAREA ROWS=8 COLS=26 name="obj">
</TEXTAREA>
Isn't Posting to it's variable, if it is I'm loosing it because it isn't being written to the new html page the code creates.
--snippet--
$f1 = fopen($pagename, "w+"); //create the new file
$chmod = chmod($pagename, 0644); //set the appropriate permissions.
$top = ('<html><head><\/head><body marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 leftmargin=0 rightmargin=0>');
$bot = ('<\/body><\/html>');
$pagecontent = stripslashes($top.$obj.$bot); // the page content
fputs($f1, $pagecontent); // add the content to the page
fclose($f1); // close the page (file)
--end snippet--
$obj is $obj = $_POST['obj']; also it is flash movie code
similar to
<object width="550" height="400"><param name="movie" value="images/th.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><embed name="index" src="images/th.swf" quality="high" bgcolor="#FFFFFF" width="550" height="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</object>
Any clue as to why it isn't writing to the html output?
Rachael