سؤال

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