문제

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