gebruiker35
Gebruiker
- Lid geworden
- 29 mrt 2008
- Berichten
- 434
hoi,
ik heb een code die ik eerder zelf heb geschreven helemaal omgebouwd..
alleen...
hij werkt niet.
Parse error: syntax error, unexpected $end in /usr/home/home.rdnet.nl/knulst/klassesite/home.php on line 78
hier de code.
ik heb een code die ik eerder zelf heb geschreven helemaal omgebouwd..
alleen...
hij werkt niet.
Parse error: syntax error, unexpected $end in /usr/home/home.rdnet.nl/knulst/klassesite/home.php on line 78
hier de code.
PHP:
<?php
$ww = ('opper8er');
$contr = $_POST[field2];
if ($_POST[field2] == FALSE)
{ echo 'I wish you good luck!:P' ; }
else {
if ($_POST[field2] != $ww)
{
echo 'Please give an correct password!';
die('Please give an correct password!');
}
else
{
setlocale (LC_ALL, 'nl_NL');
$datum = strftime ("%A %d-%m-%Y");
$head="<html><head><script language='JavaScript' type='Text/JavaScript'><!-- if (top.location == self.location) { top.location.href = 'http://home.kliksafe.nl/klassesite/index.php?page=1' } //--> </script> </head> <body>";
$indexhtml="$_POST[field1]";
$bottom="</body></html>";
$a=fopen("home.html","r");
if ($a)
{
$b=file("home.html");
fclose($a);
$a=fopen("home.html","w"); }
if ($a)
{
fwrite($a," $head $indexhtml <p> Laast bijgewerkt: $datum </p> $bottom ");
}
?>
<html>
<head>
<link rel="shortcut icon" href="http://home.kliksafe.nl/knulst/favico.ico" />
</head>
<body bgcolor="#FFCC00">
<form name="loginform" method="POST" action="./huiswerkh2cbewerkenh2chuiswerk.php">
<textarea type="text" input="text" name="field1" rows="10" width="500">
PASS:
<input type="password" input="text" name="field2" size="20" value="name" maxlength="99999999"></textarea>
<input type="submit" value="OK" name="OK" class="button" onMouseOver="this.style.cursor='hand'"></p>
</form>
</body>
</html>