FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outputting info on thank you page
#4
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:

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
Reply


Messages In This Thread
Outputting info on thank you page - by rubycat - Jul 12th, 2009, 9:33 AM
RE: Outputting info on thank you page - by Ben - Jul 12th, 2009, 10:23 AM
RE: Outputting info on thank you page - by rubycat - Jul 12th, 2009, 12:34 PM
RE: Outputting info on thank you page - by Ben - Jul 12th, 2009, 10:48 PM
RE: Outputting info on thank you page - by rubycat - Jul 13th, 2009, 6:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)