Forum Replies Created

Viewing 1 replies (of 1 total)
  • battingboy90

    (@battingboy90)

    I am having some troubles using a form with this plugin as well. My form will not show up. here is my code:

    <?php

    $action=$_REQUEST[‘action’];

    if ($action==””) /* display the contact form */
    {

    ?>

    <form action=”” method=”POST” enctype=”multipart/form-data”>
    <input type=”hidden” name=”action” value=”submit”>
    Your name:
    <input name=”name” type=”text” value=”” size=”30″/>
    Your email:
    <input name=”email” type=”text” value=”” size=”30″/>
    Your message:
    <textarea name=”message” rows=”7″ cols=”30″></textarea>
    <input type=”submit” value=”Send email”/>
    </form>

    ?>
    <?php

    }
    else{
    $name=$_REQUEST[‘name’];
    $email=$_REQUEST[’email’];
    $message=$_REQUEST[‘message’];
    if (($name==””)||($email==””)||($message==””))
    {
    echo “All fields are required, please fill the form again.”;
    }
    else{
    $from=”From: $name<$email>\r\nReturn-path: $email”;
    $subject=”Message sent using your contact form”;
    mail(“battingboy90@aol.com”, $subject, $message, $from);
    echo “Email sent!”;
    }

    }

    ?>

    Any help is appreciated!

Viewing 1 replies (of 1 total)