I
I have one form and I want to save the values of the form in a database only if the user has the correct password.
I verify the password with a field named cod_prof
here is my php code for verify the user in On Submit code - after sending email
I get the No permission message if the user is note validated but the record is inserted in the database. How can I avoid that?
I have one form and I want to save the values of the form in a database only if the user has the correct password.
I verify the password with a field named cod_prof
here is my php code for verify the user in On Submit code - after sending email
<?php
if($_POST['cod_prof']=="xxxyyy"){
$pasta=$_POST['Username'];
!JFolder::create('C:\xampp\xampp\htdocs\joomla\uploads'.DS.$pasta) ;
echo $_POST['cod_prof'];
}else{
echo "No permission";
}
?>
I get the No permission message if the user is note validated but the record is inserted in the database. How can I avoid that?