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>
有帮助吗?

解决方案

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'];

其他提示

You have specified:

formaction="webformmailer.php"

when it should be

action="webformmailer.php"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top