form registration

How do I create a check after logging in if there is data to the edit page if there is no generate code? thanks

Your post is not clear enough, please post a real example case for more discussion.

yes thanks mobhar im create table
check_nopol
nohp nopol

  1. what I need is on the add page I need to check the actual add function I only use to check the res_partner table in the mobile field.
  2. after checking in the mobile field the res_partner table if the mobile field is the same as the input field in nohp then I want to redirect the edit page that has the same mobile to complete the incomplete data in res_partner
    3.if the mobile is not the same as the input cell phone number displays another page


    this code on Form_CustomValidate:
    // Form Custom Validate event
    function Form_CustomValidate(&$customError) {

// Get a record as associative array
// NOTE: Modify your SQL here, replace the table name, field name and the condition
$check = ExecuteRow(“SELECT mobile FROM res_partner”);
if (CurrentPageID() == “add”) {
if($check==$rs[“nohp”]){
ob_end_clean();
// NOTE: Modify the target page
header(“Location: tes.php”);
exit();

}else {
ob_end_clean();
// NOTE: Modify the target page
header(“Location: eror.php”);
exit();
}
}

return FALSE;
}

thx

revision code:
function Form_CustomValidate(&$customError) {

// Get a record as associative array
// NOTE: Modify your SQL here, replace the table name, field name and the condition
$okelah=$rsnew[“nohp”];
$check = ExecuteScalar(“SELECT mobile FROM res_partner where mobile=‘$okelah’”);

// Get a field value
// NOTE: Modify your SQL here, replace the table name, field name and the condition
//var_dump($check,$okelah);
if($check){
ob_end_clean();
// NOTE: Modify the target page
header(“Location: tes.php”);
exit();

}else {
ob_end_clean();
// NOTE: Modify the target page
header(“Location: eror.php”);
exit();
}
return FALSE;
}

sory done with .
$rs = $this->GetFieldValues(“FormValue”);
but
I need to get the id for each nohp to redirect to the edit page. is there an example?
ex url . satuanedit.php?id=getid()
thanks