Gary Norris
Gary Norris

Reputation: 5

Web Form not working

I have used the webformmailer.php that godaddy gives before with no problem. Now on this new site for whatever reason it's not working. Could anyone look at this code and tell me what's wrong with it or what's missing from it.

Thanks in Advance

    <div id='form_wrap'>
        <form id="contact-form" formaction="webformmailer.php" method="POST" >

    <p id="formstatus"></p>
            <textarea id="inputtext"></textarea>
            <input type="text" name="name" value="" id="username" placeholder=" Full Name" />
            <input type="text" name="email" value="" id="username" placeholder=" Email "  />
            <input type="submit" name ="submit" value="Submit" />

        </form>
        </div>

Upvotes: 0

Views: 680

Answers (2)

Kevin Lynch
Kevin Lynch

Reputation: 24703

You have specified:

formaction="webformmailer.php"

when it should be

action="webformmailer.php"

Upvotes: 0

Funk Forty Niner
Funk Forty Niner

Reputation: 74217

Here, give this a whirl. (Should work, as I don't have your webformmailer.php code).

You also left the VALUE's empty. I popped 'em in there for ya.

<div id='form_wrap'>
    <form id="contact-form" action="webformmailer.php" method="POST" >

<p id="formstatus"></p>
        <textarea id="inputtext"></textarea>
        <input type="text" name="name" value="username" id="username" placeholder="Full Name" />
        <input type="text" name="email" value="email" id="email" placeholder="Email" />
        <input type="submit" name="submit" value="Submit" />

    </form>
</div>

This is assuming your form handler contains something to the affect of:

$username = $_POST['username'];
$email = $_POST['email'];

Upvotes: 1

Related Questions