Hi everybody,
assumed we have the situation, that a form contains 10 fields called
field1,
field2,
field…,
field10.
On an event (for example “onRefresh”) we write a php-procedure, that checks each value of the mentioned fields. Cause of the big amount we do not want to write for each field an own procedure, rather something like this:
for ($i = 1; $i <= 10; $i++)
{
if ({field}$i = “Hello”) // that’s probably the wrong syntax!
{
sc_error_message(“Goodbye” . {Field}$i); // that’s probably the wrong syntax!
}
}
Who can tell the right syntax to adresse a fieldname, that is combined as a string??
Thx in advance,
Hydro