Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Notice: Undefined index: passpor in C:\wamp64\www\MSSN PORTAL\MemregisterExec.php on line 22

BELLOW IS THE VARDUMP RESULT

'passpor' => string '58.jpg' (length=6)
  'fname' => string '' (length=0)
  'sname' => string '' (length=0)
  'oname' => string '' (length=0)
  'state' => string '' (length=0)
  'lga' => string '' (length=0)
  'city' => string '' (length=0)
  'phn' => string '' (length=0)
  'cAdres' => string '' (length=0)
  'rAdres' => string '' (length=0)
  'stretName' => string '' (length=0)
  'dob' => string '' (length=0)
  'gmail' => string '' (length=0)
  'username' => string '' (length=0)
  'password' => string '' (length=0)
  'cPassword' => string '' (length=0)


What I have tried:

PHP
$picture  = $_FILES['passpor']['name'];
		$ppt = date('dmyHis').$picture;
	move_uploaded_file($_FILES['passpor']['tmp_name'],"upload/".$ppt);
	$passport = $_FILES['passpor']['name']; 
	echo $passport = $_FILES['passpor']['name']; 
	//exit;
Posted
Updated 13-Oct-21 4:17am
v2
Comments
Richard MacCutchan 13-Oct-21 11:04am    
The message is clear. You are trying to use an index value which does not exist.
Ibrahim Hassan 1234 1-Nov-21 1:14am    
BUT ALL THE INDEX ARE DEFINED SIR, CAN YOU HELP ME TO FIGURE IT OUT
Richard MacCutchan 1-Nov-21 4:18am    
It is impossible for anyone here to know what is wrong. You need to gather more information.
Ibrahim Hassan 1234 16-Nov-21 6:40am    
thank you Sir.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900