Hi
Here is my first work with chronoforms. I need to do the following:
Validate an entry in a Table (named registo) This validation is made with fields email and password. If the user is valid I want to redirect him to one website that is in the field Destino (in the table registo). Here is my code in server side validation
Easy, no? But I have one problem who can I get the field Destino in my table?
I try
but I had no lucky
After I got the $segue value I only have to do is
Here is my first work with chronoforms. I need to do the following:
Validate an entry in a Table (named registo) This validation is made with fields email and password. If the user is valid I want to redirect him to one website that is in the field Destino (in the table registo). Here is my code in server side validation
<?php
$email=$_POST['Email'];
$passe=$_POST['Passe'];
$db =& JFactory::getDBO();
$query = "
SELECT * from registo WHERE Email='$email' and Passe='$passe'
";
$db->setQuery($query);
if ( $db->loadResult() ) {
return "You are Registed";
}
?>
Easy, no? But I have one problem who can I get the field Destino in my table?
I try
$segue=db->Destino
but I had no lucky
After I got the $segue value I only have to do is
header("Location:'$segue'");