Page 1 of 1
[SOLVED] Verifying Users part2
Posted: Wed Apr 13, 2005 2:21 pm
by anthony88guy
Ok, i can display the users that have to verifed, but when i get the box and submit it to be verifed (update the database) it doesn't.
Posted: Thu Apr 14, 2005 7:06 am
by John Cartwright
It is what the error sais, you are supplying $_POST['vusername'] which does not appear to be an array.
try print_r($_POST['vusername']); before the foreach() to see what that variable actually contains.
Posted: Thu Apr 14, 2005 10:06 am
by anthony88guy
Warning: Invalid argument supplied for foreach() in /home/*********************.php on line 135
So its still an error on line 135 which is
Line 135: foreach($_POST['name'] as $name => $value){
I will test it with just "print_r($_POST['name'])"
EDIT: I tried with just "print_r($_POST['name'])" can it prints nothing.
Posted: Fri Apr 15, 2005 4:50 pm
by anthony88guy
bump
Posted: Fri Apr 15, 2005 5:33 pm
by Burrito
anthony88guy wrote:
EDIT: I tried with just "print_r($_POST['vusername'])" can it prints nothing.
Then it's probably not an array.
what does the source look like before you submit it?
does it show:
Code: Select all
<input name="e;vusernameї]"e; type="e;checkbox"e;>
or some derivitive of that?
try also echoing $_POST['vusername'] and see if it says "Array"
from what you posted (for all intents and purposes), it looks to me like it should work, but if print_r isn't giving you anything...there's someting awry
Posted: Fri Apr 15, 2005 6:47 pm
by anthony88guy
This is what my verification page looks like: