} elseif (isset($_GET['success'])) { echo '<div style="padding:10; margin:10; background:green; text-align:center;">Form submitted successfully</div>'; } ?> <form id="f" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <div id="i-div" style="padding:10px; border:solid 1px #ccc;"> <div>Enter up to 5 characters below</div> <input type="text" name="i" value="" /> <div id="i-msg"></div> </div> <input type="submit" value="submit" id="s" /> <?php echo $form->getFieldForServer(); ?> </form> <script> <?php echo $form->getClientValidationJS(); ?> <?php if (isset($_GET['__epi__'])) { echo $form->getRepopulateJS($_GET['__epi__']); } ?> </script> </body> </html>