Jump to content

code order is it correct please cheers.


redarrow

Recommended Posts

advance thank you, Can you tell me if the code order looks correct as the conditon's are not working cheers.

 

<?php

// post the varables

$enquire=$_POST['enquire'];
$user_name=$_POST['user_name'];
$user_email=$_POST['user_email'];


//get the function for the secuity code
x();


// check user input
if( empty($user_name) || empty($user_email) || empty($enquire)){

echo" sorry please use all the form";

}

// check if url is correct

if($_GET['cmd']=='e'){


// submit condition

if($_POST['submit']){


// see if the secuity code matches

if ($new_string == $random){ 

echo hello;

}else{

    echo "soory please use the correct secuity code thank you!";
}
}
}
?>

Link to comment
https://forums.phpfreaks.com/topic/44963-code-order-is-it-correct-please-cheers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.