i have a contact form but im a little bit stuck with the PHP behind the contact form.. <form method="post" action="includes/email.php"> <div class="row uniform 50%"> <div class="6u 12u$(xsmall)"> <input type="text" name="name" id="name" value="" placeholder="Name" /> </div> <div class="6u$ 12u$(xsmall)"> <input type="email" name="email" id="email" value="" placeholder="Email" /> </div> <div class="12u$"> <div class="select-wrapper"> <select name="category" id="category"> <option value="">- Category -</option> <option value="1">Website Bugs/Errors</option> <option value="1">MyAdvertisingPays Queries </option> <option value="1">Other</option> </select> </div> </div> <div class="4u 12u$(small)"> <input type="radio" id="priority-low" name="priority" checked> <label for="priority-low">Low Priority</label> </div> <div class="4u 12u$(small)"> <input type="radio" id="priority-normal" name="priority"> <label for="priority-normal">Normal Priority</label> </div> <div class="4u$ 12u$(small)"> <input type="radio" id="priority-high" name="priority"> <label for="priority-high">High Priority</label> </div> <div class="6u 12u$(small)"> <input type="checkbox" id="copy" name="copy"> <label for="copy">Email me a copy of this message</label> </div> <div class="6u$ 12u$(small)"> <input type="checkbox" id="human" name="human" unchecked> <label for="human">I am a human and not a robot</label> </div> <div class="12u$"> <textarea name="message" id="message" placeholder="Enter your message" rows="6"></textarea> </div> <div class="12u$"> <ul class="actions"> <li><input type="submit" value="Send Message" class="special" /></li> <li><input type="reset" value="Reset" /></li> </ul> </div> </div> </form> Code (markup): thats the form im running, but i cant get it to send mails? i so have have a mailto in the emails.php file and some other stuff i just got rid as it gave me these errors Notice: Undefined index: Name in C:\xampp\htdocs\mmm\includes\email.php on line 2 Notice: Undefined index: Email in C:\xampp\htdocs\mmm\includes\email.php on line 2 Warning: mail() expects at most 5 parameters, 7 given in C:\xampp\htdocs\mmm\includes\email.php on line 2 Your email has been sent. PHP aint my thing.. any help will be appreciated
Well, you should post the content of email.php - the form looks okay (apart from the horrible HTML and absurd classnames) - the problem lies in email.php, and from the looks of the errors, it seems you're using undeclared variables, or trying to use something with the wrong name.
because email.php was that poor i deleted it altogether.. so im basically starting from scratch again..
Then the error is clear. You're calling /email.php into the file, as you can see in the first few lines of your script, yet email.php no longer exists. That's why you're having problems.
Then rewrite email.php, post the code here after testing, and we'll give you more help. We're not gonna write it for you.
Try leaving the action field blank in line number 2. I am also new in PHP. But give a try... All the best.