How to check whether a posted value exists?
-
Hi guys,
I’m just wondering if I can check whether the following line of code holds a value:
<?php $template->the_posted_value( ‘dob_month’ ); ?>
I’m hoping to run an if statement where if no value is set in the above then the word “Month” is echoed, if it does hold a value then display that instead?
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to check whether a posted value exists?’ is closed to new replies.