Heey,
Ik ben bezig met dit script om de profiel-informatie aan te vullen, echter weergeeft ie het formulier niet...
Ik gebruik dit script:
Alvast bedankt voor de hulp!
Gr.
Jos
Ik ben bezig met dit script om de profiel-informatie aan te vullen, echter weergeeft ie het formulier niet...
Ik gebruik dit script:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MijnSexyFoto</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="header"><div id="login">
<form action="" method="post">
<input type="text" border="0" class="login_input" name="naam" value="Gebruikersnaam" onBlur="if(this.value == ) { this.value=Gebruikersnaam}"
onfocus="if (this.value == Gebruikersnaam){this.value=}" />
<input type="password" border="0" class="login_input2" name="pass" value="mijnwachtwoord" onBlur="if(this.value == ) { this.value=mijnwachtwoord}"
onfocus="if (this.value == mijnwachtwoord){this.value=}" />
<input type="submit" class="login_submit" border="0" value="." />
</form>
</div></div>
<div id="menu"> <a href="#">Startpagina</a>
<a href="#">Registreren</a>
<a href="#">Fotos</a>
<a href="#">Leden</a>
<a href="#">Tell-a-friend</a>
<a href="#">Bookmark</a>
<a href="#">Info</a>
<a href="#">Contactformulier</a>
</div>
<div class="container">
<div class="content-top">Profiel bewerken</div>
<div class="content-mid">
Hier kunt u uw informatie aanpassen.<br /><br />
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]POST[/COLOR][COLOR= #007700]) {[/COLOR]
?>
<form action="" method="post">
<input type="text" border="0" class="login_input" name="naam" value="Naam" onBlur="if(this.value == ) { this.value=Naam}"
onfocus="if (this.value == Naam){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="leeftijd" value="Leeftijd" onBlur="if(this.value == ) { this.value=Leeftijd}"
onfocus="if (this.value == Leeftijd){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="woonplaats" value="Woonplaats" onBlur="if(this.value == ) { this.value=Woonplaats}"
onfocus="if (this.value == Woonplaats){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="hobbies" value="Hobbies" onBlur="if(this.value == ) { this.value=Hobbies}"
onfocus="if (this.value == Hobbies){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="haarkleur" value="Haarkleur" onBlur="if(this.value == ) { this.value=Haarkleur}"
onfocus="if (this.value == Haarkleur){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="kleur_ogen" value="Kleur ogen" onBlur="if(this.value == ) { this.value=Kleur ogen}"
onfocus="if (this.value == Kleur ogen){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="lengte" value="Lichaamslengte" onBlur="if(this.value == ) { this.value=Lichaamslengte}"
onfocus="if (this.value == Lichaamslengte){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="gewicht" value="Gewicht" onBlur="if(this.value == ) { this.value=Gewicht}"
onfocus="if (this.value == Gewicht){this.value=}" /><br />
<input type="text" border="0" class="login_input" name="status" value="Status" onBlur="if(this.value == ) { this.value=Status}"
onfocus="if (this.value == Status){this.value=}" /><br /><br />
<input type="submit" border="0" value="Wijzigingen opslaan" />
</form>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Naam"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige naam ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]leeftijd[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Leeftijd"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige leeftijd ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woonplaats[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Woonplaats"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige woonplaats ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hobbies[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Hobbies"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige hobby(s) ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]haarkleur[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Haarkleur"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige haarkleur ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kleur_ogen[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Kleur ogen"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige kleur ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]lengte[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Lichaamslengte"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige lengte ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gewicht[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Gewicht"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldig gewicht ingevuld<br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Status"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen geldige status ingevuld<br />[/COLOR][COLOR= #007700];
}
}[/COLOR] ?>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #FF8000]// Profiel wijzigen
// Einde profiel wijzigen [/COLOR]
?><br /><br />
<a href="profiel_bewerken.php">Profiel Bewerken</a><br />
<a href="uitloggen.php" onclick="return confirm(Weet je zeker dat je wilt uitloggen?);">Uitloggen</a>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je bent niet ingelogged, klik <a href="login.php">hier</a> om dit te doen.[/COLOR][COLOR= #007700];
}[/COLOR]
?>
</div>
<div class="content-bottom"></div>
<div id="copyright">© Copyright MijnSexyFoto 2010-2011 | Alle rechten voorbehouden</div>
</div>
</body>
</html>
?> Alvast bedankt voor de hulp!
Gr.
Jos

dat klopt niet volgens mij ;p


