I'm using the jQuery Dialog box on my website, to display a form. I don't want the Dialog box to pop up more than once, for the same user. So once they have either filled out their details or clicked on X (close) I don't want them to see this message again. I've read I can use cookies within the form, but unable to find any exact code I could use. Here's the code so far:
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
<div class="site-container">
<div id="dialog" title="Basic dialog">
<?php echo do_shortcode( '[contact-form-7 id="92" title="Test"]' ); ?>
</div>
What's the best solution for this?
Many thanks Rachael