redirect to profile after registering for website using php -


i want send user there profile after registering no input file not sure i'm doing wrong start session in els statement not sure if that's write can me out maybe

<?php //  set  database  connection require("dbconfig.php");     //  lets   our  posts //  $email = $_post['email']; $pass = $_post['password']; $bn = $_post['bandname']; $state = $_post['state']; $genre = $_post['genre']; $description = $_post['description']; $image = $_files['image'];  /// valid  image  types ///  $image_type = array("image/jpg","image/jpeg","image/bmp","image/gif","image/png");   ///  folder    hold  image  $imagepath = "images/";   $imagepath .= $image["name"];   // move  file tmp  folder  image  folder  if (move_uploaded_file($image['tmp_name'], $imagepath)){  $foo = `mogrify -quality 92 -scale 500x $imagepath`;     }       //  insert  data mysql       $sql = "insert dbusers (email, password, bandname, state, genre,           description    , image)                                                                                                values ('$email','$pass','$bn   ','$state','$genre','$description','".$image['name']        . "')";   if (!mysql_query($sql)){   die('error' . mysql_error());              }else {            $id=mysqli_insert_id($sql); // associated id number                             // set login session     session_start();     $_session ['id'       ] = $id;     $_session ['bandname' ] = $bandname;     $_session ['password' ] = $password;     header  ("location:ympprofile.php?listid=$id");    }     ?> 

you need change

header  ("location:ympprofile.php?listid=$id");    

to

header  ("location:ympprofile.php?listid=$id");    

the location property header function capitalized.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -