Wat betekenen deze foutmeldingen, en wat moet ik er aan doen?[zie uitleg]
Notice: Undefined index: avatar in on line 72
Notice: Undefined index: avatar in on line 73
Notice: Undefined index: avatar in on line 74
Notice: Undefined index: avatar in on line 75
Notice: Undefined variable: numrows in on line 88
.................................
$firstname = strip_tags($_POST['firstname']);
$lastname = strip_tags($_POST['lastname']);
$username = strip_tags($_POST['username']);
$email = strip_tags($_POST['email']);
$password = strip_tags($_POST['password']);
$repassword = strip_tags($_POST['repassword']);
$website = strip_tags($_POST['website']);
$youtube = strip_tags($_POST['youtube']);
$bio = strip_tags($_POST['bio']);
$name = $_FILES["avatar"]["name"];
$type = $_FILES['avatar']['type'];
$size = $_FILES['avatar']['size'];
$tmpname = $_FILES['avatar']['tmp_name'];
$ext = substr($name, strrpos($name, '.'));
if($firstname&&$lastname&&$username&&$email&&$password&&$repassword){
if ($password == $repassword){
if (strstr($email, "@") && strstr ($email, ".") && strlen($email)>=6 ) {
require("connect.php");
$query = mysql_query("SELECT * FROM users WHERE username='$username'");
$num_rows = mysql_num_rows($query)
Toegevoegd na 2 minuten:
Vanaf regel 62 gekopieerd
Heb je meer informatie nodig om de vraag te beantwoorden? Reageer dan hier.