The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
correct multiple checkbox value variables
I need the correct 'value' variable for the "multiple selection checkbox"... Rightnow, when i $post[field33], it gives me a number like 1,2,3... (selection choice) instead of the actual value (male,female) that i want... anyone know the correct variable for the value output using the multiple selection checkbox?
i tried $postname[field33], $post[field33], but none of that works =( please help... |
#2
|
|||
|
|||
I think you have to eval what to assign as a value on display.
PHP Code:
|
#3
|
|||
|
|||
or
Code:
<if condition="$post['fieldX'] & 1"> CODE TO DISPLAY IF OPTION 1 IS SELECTED </if> <if condition="$post['fieldX'] & 2"> CODE TO DISPLAY IF OPTION 2 IS SELECTED </if> <if condition="$post['fieldX'] & 4"> CODE TO DISPLAY IF OPTION 3 IS SELECTED </if> <if condition="$post['fieldX'] & 8"> CODE TO DISPLAY IF OPTION 4 IS SELECTED </if> <if condition="$post['fieldX'] & 16"> CODE TO DISPLAY IF OPTION 5 IS SELECTED </if> <if condition="$post['fieldX'] & 32"> CODE TO DISPLAY IF OPTION 6 IS SELECTED </if> <if condition="$post['fieldX'] & 64"> CODE TO DISPLAY IF OPTION 7 IS SELECTED </if> <if condition="$post['fieldX'] & 128"> CODE TO DISPLAY IF OPTION 8 IS SELECTED </if> |
#4
|
||||
|
||||
Thanks for the help.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|