Add a record to another table from a condition

Á

Álvaro Moura

Last updated on Jul 6, 2026

1- We create a form where we will perform the validation.

2- In the OnValidate event of our form we introduce the code with this scheme

if (condition == condition)

{

insert the data to the other table;

} else {

echo "no records added";

}

3- this will proceed to add the record in our other table of our database