Example #1
0
    
</style>
</head>
<body>
  
  <?php 
if (!empty($error_message)) {
    ?>
    <div class="message">
      <h3><?php 
    echo $error_message;
    ?>
</h3>
      
      <?php 
    echo wufoo_build_form($_POST['form_id'], array('submit_class' => 'button-primary', 'cancel_link' => true, 'cancel_location' => get_bloginfo('url')), $sent->FieldErrors);
    ?>
      
    </div>
    
  <?php 
} else {
    ?>
    
    <div class="message">
      <h3>Thank You for Filling out My Form</h3>
      
      <a class="button-primary" href="<?php 
    bloginfo('url');
    ?>
">Return To My Site!</a>
Example #2
0
function wufoo_add_entry()
{
    wufoo_header('New Entry');
    echo wufoo_build_form($_GET['entries'], array('cancel_link' => true, 'cancel_location' => wufoo_link('forms') . '&entries=' . $_GET['entries']));
}