Contact Form PHP menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    Puff's Avatar Member
    Reputation
    655
    Join Date
    Jul 2007
    Posts
    700
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Contact Form PHP

    Hey guys, my mate has made me a very nice looking contact form, and has done the html but no php and he's off on his honey moon.

    Now can anyway patch up where he has left off?

    Here is the html.

    Code:
    <div class="square square-4" id="block_4">
    	    	<div class="lines line-4-1"></div>
    
    	        <div class="contact-bg">
                	<div id="contact-box">
    		        	<form action="javascript:contact();" method="post">
    		            	<input type="text" value="" id="form_nume" class="text" />
    		                <input type="text" value="" id="form_mail" class="text" />
    		                <input type="text" value="" id="form_tel" class="text" />
    		                <textarea id="form_msg" cols="" rows=""></textarea>
    		            	<input type="submit" value="" class="submit" />
    		            </form>
    	                <div class="validate" id="validate-name"></div>
    	                <div class="validate" id="validate-mail"></div>
    	                <div class="validate" id="validate-message"></div>
    	        	</div>
                </div>
    
                <div id="contact-loading" style="display:none"><img src="images/ajax-loader.gif" alt="" /></div>
                <div id="contact-done"></div>
    If anyone could fix this for me I would much appreciate it!

    Thanks guys!

    Art

    Contact Form PHP
  2. #2
    JD's Avatar Fedora Potato Johnson V
    Reputation
    1113
    Join Date
    Jan 2008
    Posts
    3,129
    Thanks G/R
    12/89
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's a lot to be done still hehe, I'll get my PHP book out either tonight or tomorrow and finish it for ya!




  3. #3
    Zurkei's Avatar Contributor

    Reputation
    91
    Join Date
    Apr 2007
    Posts
    405
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let me get this right, you want someone to make the script to send the stuff entered to a desired email?

  4. #4
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sendmail.php:
    PHP Code:
    <?php
    $to 
    "[email protected]";
    $subject "Contact form";
    $from $_POST["form_mail"];
    $text "From: "  $from "\n" $_POST["form_msg"];
    if (
    mail($to$subject$text)) {
      echo(
    "<p>E-mail Sent!</p>");
     } else {
      echo(
    "<p>E-mail sending was not successfull!</p>");
    }
    ?>
    if "\n" is not skipping a line then im sorry i was programming with php a year ago maybe
    and the html part:
    Code:
    [...]
    <form action="sendmail.php" method="post">
    [...]
    Last edited by visitor; 04-11-2009 at 01:46 PM.
    Hey I just met you

  5. #5
    Puff's Avatar Member
    Reputation
    655
    Join Date
    Jul 2007
    Posts
    700
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys, and yes I want it sent to my email.

    Art

  6. #6
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you want me to make a checking script (checks if all the forms are filled) for the mail script then pm me
    Hey I just met you

  7. #7
    Op7ima's Avatar Active Member
    Reputation
    17
    Join Date
    Feb 2009
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by banviktor View Post
    sendmail.php:
    PHP Code:
    <?php
    $to 
    "[email protected]";
    $subject "Contact form";
    $from $_POST["form_mail"];
    $text "From: "  $from "\n" $_POST["form_msg"];
    if (
    mail($to$subject$text)) {
      echo(
    "<p>E-mail Sent!</p>");
     } else {
      echo(
    "<p>E-mail sending was not successfull!</p>");
    }
    ?>
    if "\n" is not skipping a line then im sorry i was programming with php a year ago maybe
    and the html part:
    Code:
    [...]
    <form action="sendmail.php" method="post">
    [...]

    Recommended. Will work perfectly for you... and yes \n is for skipping lines.

  8. #8
    Puff's Avatar Member
    Reputation
    655
    Join Date
    Jul 2007
    Posts
    700
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah brilliant stuff! You have all been so helpful, greatly apreciated! Ill try and spread my rep for all of you

    Art

  9. #9
    Sirupsen's Avatar Member
    Reputation
    25
    Join Date
    Oct 2007
    Posts
    260
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I were you I'd use Ajax Contact form, I found one here. Which looks damn neat!
    Demo here.
    This one even has build in form validation.
    Screenshot:

    You should easily making it able to just send to one static mail, eg. your own instead of the user having to type in that! Just ask if you need help for that.

    Good luck finding the solution you like. =)



  10. #10
    JD's Avatar Fedora Potato Johnson V
    Reputation
    1113
    Join Date
    Jan 2008
    Posts
    3,129
    Thanks G/R
    12/89
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Damn, just wrote it all xP Now you guys got it haha




  11. #11
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sendmail.php:
    PHP Code:
    <?php 
    $to 
    "[email protected]"
    $subject "Contact form"
    $from $_POST["form_mail"]; 
    $text 'From: '  $from '\n\n' $_POST["form_msg"]; 
    $headers 'From: ' $from '\r\n' 'Puffmailer: PHP/' phpversion();
    if (
    mail($to$subject$text$headers)) { 
      echo(
    "<p>E-mail Sent!</p>"); 
     } else { 
      echo(
    "<p>E-mail sending was not successfull!</p>"); 

    ?>
    revised code.
    totally functioning just needs an SMTP server.
    Hey I just met you

Similar Threads

  1. Replies: 12
    Last Post: 07-03-2011, 12:24 PM
  2. [php] form feedback help
    By 2dgreengiant in forum Programming
    Replies: 6
    Last Post: 01-07-2010, 11:32 AM
  3. Contact form help
    By Puff in forum Programming
    Replies: 3
    Last Post: 07-28-2008, 04:56 PM
  4. Getting 15k armor in bear form
    By Cush in forum World of Warcraft Guides
    Replies: 6
    Last Post: 01-03-2007, 01:10 PM
  5. Skeletal Form and Mounted
    By Matt in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 04-17-2006, 05:09 AM
All times are GMT -5. The time now is 10:46 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search