Ok, that works well.
Heres one more similar question. I have two conditions for update record ("$tidsskillnad > 72") and ("$tidsskillnad < 72"). And I make two similar update records (with some differences). The trigger should be the same form button. How do I write this. I can't make it work. Heres the code chunk for first one:
if (("$tidsskillnad" > 72) || (isset($_POST["AvbokaProvning3Obekraftad"]) || isset($_POST["AvbokaProvning3Obekraftad_x"])))) {
"AvbokaProvning3Obekraftad" = button name