Hello everyone!
please tell me how to perform a redirect to the page condition
example:
function submitForm(){
$('#ff').form({
url:'.php',
onSubmit: function(param){
param.p1 = 'submit';
},
success:function(data){
$.messager.alert('Error',data,'error');
}
});
// submit the form
$('#ff').submit();
}
end PHP
if {
header("Location: index.php"); exit();
}
else
{
echo <<<INFO
Error
INFO;
}
in this form, a page in a message box