|
-
Dec 23rd, 2002, 12:13 PM
#1
Thread Starter
Lively Member
-
Dec 23rd, 2002, 12:29 PM
#2
Frenzied Member
what do you mean how do you deal with them. they are a 1 or a 0 and then if they are a 1 you have the value of that checkbox.
-
Dec 23rd, 2002, 12:33 PM
#3
Thread Starter
Lively Member
I know that but I need a way how to check if theyr value is 1 or 0
can u plz give me some sample code
?
-
Dec 23rd, 2002, 12:48 PM
#4
Frenzied Member
PHP Code:
if ($_POST['checkbox_name']){
echo $_POST['checkbox_name']; // echos the value
}
-
Dec 23rd, 2002, 01:30 PM
#5
Thread Starter
Lively Member
i do that but i have error looooooooook
PHP Code:
if ($_POST['V1']) {
echo "v1";
}else{
echo "v2";
}
-
Dec 23rd, 2002, 04:55 PM
#6
Stuck in the 80s
It'd help to know what error you're getting. I don't see anything wrong with that code. Are you sure the line number matches up with that if statement?
-
Dec 23rd, 2002, 05:02 PM
#7
Thread Starter
Lively Member
-
Dec 23rd, 2002, 05:06 PM
#8
Thread Starter
Lively Member
-
Dec 23rd, 2002, 05:47 PM
#9
Frenzied Member
that code own't work like that. you have to have it submitted in a form. can't jsut echo it out and expect it to run right.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|