Hi,
I’m new to PHP and trying to replace an email address form field if left blank with a default email address.
[php]<?php if(get_field('cemail')) { ?>
<?php $email = (get_field('cemail')); if($email!=""){ echo 'email address' ; } ?> [/php]Hi,
I’m new to PHP and trying to replace an email address form field if left blank with a default email address.
[php]<?php if(get_field('cemail')) { ?>
<?php $email = (get_field('cemail')); if($email!=""){ echo 'email address' ; } ?> [/php]I don’t know where you are learning PHP, but you should probably find a new source.
Don’t know what get_field is for.