Jul 12th, 2009, 10:48 PM
Good questions!
(btw, the @ symbol just prevents any warnings from being outputted to the screen if the variable isn't defined).
Displaying the values in multi-select works like this. First, drop the [] characters. It's weird, I know, but they're only used when submitting the data via a form - it tells the server to expect an array of values. Try this instead:
It displays the values in $categories, separates by ", ".
Sure, here's an example.
All the best -
Ben
(btw, the @ symbol just prevents any warnings from being outputted to the screen if the variable isn't defined).
Displaying the values in multi-select works like this. First, drop the [] characters. It's weird, I know, but they're only used when submitting the data via a form - it tells the server to expect an array of values. Try this instead:
PHP Code:
<?=join(", ", $fields["categories"])?>
It displays the values in $categories, separates by ", ".
Quote:And, if a field is left blank during the data entry, is there a way to conditionally make it so that nothing gets output on the thank you page?
Sure, here's an example.
Code:
<?php if (!empty($fields["first_name"])) { ?>
First Name: <?=$fields["first_name"]?>
<?php } ?>
All the best -
Ben