redarrow Posted March 30, 2007 Share Posted March 30, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.