[SOLVED] overwriting data in db

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

knallbernd
Forum Commoner
Posts: 30
Joined: Mon Apr 23, 2007 4:39 am

Post by knallbernd »

Aah, now I got it!

I also tried to do it much more easier:

Code: Select all

$validated = (!empty($_POST['Frage1'][$key]) && !empty($_POST['Frage2'][$key]));

if (!$validated) {
echo "incorrect";
}

else
{

//UPDATE...
So it will only write values if there are all values filled by one persona --> not all radiobuttons are checked, but specifically the person.
Maybe not exactly what I want, but not so bad, don't you think? But I will also try your thoughts.
Thank you! Thank you! Thank you!
knallbernd
Forum Commoner
Posts: 30
Joined: Mon Apr 23, 2007 4:39 am

Post by knallbernd »

It's even more easy...

According to the GUI-Guidelines, a radiobutton has always be checked from the beginning - this solves my problem, because there is no danger to have an empty field.
Post Reply