Hello,
I have a question regarding form submission. I'd like to hide a message on my page only when users submit my form.
How can I detect if submitted form is valid?
I'm trying to do something like this in my template page:
<h1 <?php post_class(); ?>><?php the_title(); ?></h1>
<?php if(empty($_POST) /* || $_POST && invalid data supplied */ ): ?>
<?php the_content(); ?>
<?php else: ?>
<?php _e("Thank you for contacting us. We have received your message and will do our best to reply within one working day.","gravity_form") ?>
<?php endif; ?>
Thank you for your support