stophon4
04-19-2004, 11:06 PM
I have php page that writes to a php page, except the variables aren't writing, is there something I need to do?
Heres the php source:
fputs($file, '<table class="post"><tr><td>');
fputs($file, '<hr>');
fputs($file, $_POST['Name']); fputs($file,' ');
fputs($file, $time);
fputs($file, '<HR>');
fputs($file, '<center>');
fputs($file, $_POST['comments']);
fputs($file, '<br>');
fputs($file, '<font color="CDCDCD" size=2>');
fputs($file, $IP);
fputs($file, '</font><hr><hr>');
fputs($file, '</td></tr></table>');
fputs($file, $newline);
fputs($file, "<?php ");
fputs($file, $newline);
fputs($file, '$IPP = getenv (REMOTE_ADDR)');
fputs($file, $newline);
fputs($file, "if($IPP=='12.202.20.222' || $IPP=='213.235.131.26' || $IPP=='194.228.174.157'){ ");
fputs($file, $newline);
fputs($file, "<form action='gb.php' method='post'><input type='Submit' Name='delete$lines' Value='Delete Post Above'></form> }");
fputs($file, $newline);
fputs($file, "?>");
It writes back as a variable :confused:
Heres the php source:
fputs($file, '<table class="post"><tr><td>');
fputs($file, '<hr>');
fputs($file, $_POST['Name']); fputs($file,' ');
fputs($file, $time);
fputs($file, '<HR>');
fputs($file, '<center>');
fputs($file, $_POST['comments']);
fputs($file, '<br>');
fputs($file, '<font color="CDCDCD" size=2>');
fputs($file, $IP);
fputs($file, '</font><hr><hr>');
fputs($file, '</td></tr></table>');
fputs($file, $newline);
fputs($file, "<?php ");
fputs($file, $newline);
fputs($file, '$IPP = getenv (REMOTE_ADDR)');
fputs($file, $newline);
fputs($file, "if($IPP=='12.202.20.222' || $IPP=='213.235.131.26' || $IPP=='194.228.174.157'){ ");
fputs($file, $newline);
fputs($file, "<form action='gb.php' method='post'><input type='Submit' Name='delete$lines' Value='Delete Post Above'></form> }");
fputs($file, $newline);
fputs($file, "?>");
It writes back as a variable :confused: