Hello,
I need to capture users image during registration.
I have a working registration script but needs to add user image.
Here is the add.php script.
=============== =============== ===
<?
include("db.inc ");
$username=$_POS T['username'];
$password=$_POS T['password'];
$name=$_POST['name'];
$year=$_POST['year'];
$program=$_POST['program'];
$session=$_POST['session'];
$department=$_P OST['department'];
$rno=$_POST['rno'];
$phone_no=$_POS T['phone_no'];
$current_positi on=$_POST['current_positi on'];
$job_status=$_P OST['job_status'];
$address=$_POST['address'];
$email=$_POST['email'];
// prepare the query string
$query = "SELECT * FROM contents";
# check of query
$result = mysql_query($qu ery) or die('Error, query failed for Selection of table');
$result =mysql_query("I NSERT INTO contents(userna me,password,nam e,year,program, session,departm ent,rno,phone_n o,current_posit ion,job_status, address,email) VALUES ('$username','$ password','$nam e','$year','$pr ogram','$sessio n','$department ','$rno','$phon e_no','$current _position','$jo b_status','$add ress','$email') ") or die("Inseration query Failed");
mysql_close();
header('Locatio n:login.php');
?>
=============== =============== ============
How do i capture pics (image) as i capture users details.
I need to capture users image during registration.
I have a working registration script but needs to add user image.
Here is the add.php script.
=============== =============== ===
<?
include("db.inc ");
$username=$_POS T['username'];
$password=$_POS T['password'];
$name=$_POST['name'];
$year=$_POST['year'];
$program=$_POST['program'];
$session=$_POST['session'];
$department=$_P OST['department'];
$rno=$_POST['rno'];
$phone_no=$_POS T['phone_no'];
$current_positi on=$_POST['current_positi on'];
$job_status=$_P OST['job_status'];
$address=$_POST['address'];
$email=$_POST['email'];
// prepare the query string
$query = "SELECT * FROM contents";
# check of query
$result = mysql_query($qu ery) or die('Error, query failed for Selection of table');
$result =mysql_query("I NSERT INTO contents(userna me,password,nam e,year,program, session,departm ent,rno,phone_n o,current_posit ion,job_status, address,email) VALUES ('$username','$ password','$nam e','$year','$pr ogram','$sessio n','$department ','$rno','$phon e_no','$current _position','$jo b_status','$add ress','$email') ") or die("Inseration query Failed");
mysql_close();
header('Locatio n:login.php');
?>
=============== =============== ============
How do i capture pics (image) as i capture users details.
Comment