I am using the code which i have attached but it generates errors.... the first error is in this line 36.

if (isset($_POST[$MM_flag])){
    if(empty($_POST['first_name'] || empty($_POST['last_name'])){
    $error['name'] = 'Please enter your full name; name and surname';
    }

you're missing a bracket

if (isset($_POST[$MM_flag])){
if(empty($_POST)) || empty($_POST)) {
$error = 'Please enter your full name; name and surname';
}

update:

also missing a bracket on line 41: if (strlen($_POST< 8)){

and another error:

line 35.if (isset($_POST[$MM_flag])){

this if statement doesn't close not sure where its meant to close

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.