PHP form fields to an array

The data is not being added

$user = array(); 
$user =['First Name'] = $_POST['first']; 
$user =['Last Name'] = $_POST['last'];
$user =['Username'] = $_POST['username'];
$user =['Password'] = $_POST['password'];


Source: forms

Leave a Reply