I need help with this please, my attempt was to make a security code for submit button but i got an error.
[php]<?
if($_POST[‘Submit’]){
$open = fopen(“updates.txt”,“w+”);
$text = $_POST[‘update’];
if ($_POST[“Security”] == “BBC123”) {
fwrite($open, $text);
fclose($open);
echo “File updated.
”;
echo “File:
”;
$file = file(“updates.txt”);
foreach($file as $text) {
echo $text."
";
} else {
echo “Ops sumsing wen rong, you aint my boss”;
}
}
echo “
<a href=”./md5-updates.php">click here to view the live updated webpage
";echo “
<a href=”./modify.php">click here to reload modify.php
";}else{
$file = file(“updates.txt”);
echo"<form action="".$PHP_SELF."" method=“post”>";
echo"<input type=“text” name=“Security”>"; "; echo ""; echo ""; foreach($file as $text) { echo $text; } echo ""; echo "\n "; } ?>[/php] Thanks in advance