Double value attribute in front-page.php

Discussion in 'BlackBird WordPress Theme' started by waterfords, Jan 4, 2013.

  1. waterfords

    waterfords New Member

    Joined:
    Nov 20, 2012
    Messages:
    12
    Likes Received:
    0
    I just found that the sign-up form throw double value attribute into email input form, but do not know what exactly to remove, so need some help.

    Code:
            <form action="<?php get_template_directory(); ?>" id="contactForm1" class="signupform" method="post">
     
     //the line bellow is complicated
     
                <input onfocus="if (this.value == 'e-mail address') {this.value = '';}" onblur="if (this.value == '') {this.value = 'e-mail address';}" name="email" value="e-mail address" type="text" value="<?php if (isset($_POST['email'])) echo $_POST['email']; ?>" id="email" />
     
     
                <input type="submit" value="Sign Up" name="submit"/>
                <input type="hidden" name="submitted" id="submitted" value="true" />
                <?php if ($emailError != '') { ?>
                                        <br />
                <span class="error"><?php echo $emailError; ?></span>
                <?php } ?>
            </form>
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Please clarify your issue little more, so that we can give you the exact solution.
     

Share This Page