1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP HELP ON CONTACT FORM

Discussion in 'Web Development' started by techmindugltd, Sep 16, 2014.

  1. techmindugltd

    techmindugltd New Member

    Hi guys please help me out on this, i have designed my website using html, i am not good at php so i need help on making the contact form send messages to my email, here is the entire code under the contactus.html tab; i have tried out diffferent php scripts but they seem to not be working for me


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>Contact Us - techmindug.com Contacts | Hosting - Web Hosting Platform and Site Production</title>
    <meta name="description" content="cheap web hosting, nigeria web hosting,uganda web hosting, cheap domain names, naira,uganda, shillings,web designers in uganda,websites uganda domain names, sms, bulk sms, bulk message, web design, professional web design">
    <meta name="keywords" content="cheap web hosting, nigeria web hosting,uganda web hosting, cheap domain names, naira,shillings, domain names, sms,websites in uganda, cheap web desing in ugandam#, bulk sms, bulk message, web design, professional web design">
    <meta charset="utf-8">
    <link rel="shortcut icon" href="images/headlogo.png" />
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/cufon-yui.js"></script>
    <script type="text/javascript" src="js/cufon-replace.js"></script>
    <script type="text/javascript" src="js/Myriad_Pro_300.font.js"></script>
    <script type="text/javascript" src="js/Myriad_Pro_400.font.js"></script>
    <script type="text/javascript" src="js/Myriad_Pro_600.font.js"></script>
    <script type="text/javascript" src="js/script.js"></script>
    <!--[if lt IE 7]>
    <script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script>
    <![endif]-->
    <!--[if lt IE 9]>
    <script type="text/javascript" src="js/html5.js"></script>
    <![endif]-->
    </head>
    <body id="page6">
    <div class="tail-top1">
    <!-- header -->
    <header>
    <div class="container">
    <div class="header-box">
    <div class="left">
    <div class="right">
    <nav>
    <ul><li><a href="index.html">Home</a></li>
    <li><a href="services.html">Services</a></li>
    <li><a href="hosting.html">Hosting</a></li>
    <li><a href="domains.html">Domains</a></li>
    <li><a href="sms.html">SMS</a></li>
    <li class="current"><a href="contacts.php">Contact Us</a></li>
    </ul>
    </nav>

    <h1><span>TECH MIND UG</span></h1>
    </div>
    </div>
    </div>
    <span class="top-info">24/7 Sales &amp; Support +256783073216 | +256700139880 &nbsp; l &nbsp; <a href="www.facebook.com/techmindug">FACEBOOK</a> &nbsp; l &nbsp; <a href="www.facebook.com/TECHMIND">TWITTER</a></span>
    <form action="" id="login-form">
    <fieldset>
    <span class="text">
    <input type="text" value="Username" onFocus="if(this.value=='Username'){this.value=''}" onBlur="if(this.value==''){this.value='Username'}">
    </span>
    <span class="text">
    <input type="password" value="Password" onFocus="if(this.value=='Password'){this.value=''}" onBlur="if(this.value==''){this.value='Password'}">
    </span>
    <a href="#" class="login" onClick="document.getElementById('login-form').submit()"><span><span>Login</span></span></a>
    <span class="links"><a href="#">Forgot Password?</a><br/><a href="#">Register</a></span>
    </fieldset>
    </form>
    </div>
    </header>
    <!-- content -->


    <section id="content">
    <div class="container">
    <div class="inside">
    <div id="slogan">
    <div class="inside">

    <h2><span>Contacts Us</span> Today</h2>
    <p><b><span>ADDRESS:</b> Nalubega Complex,Shop B42, Bombo Road, Kampala, Uganda</p>
    <p><b><span>TELEPHONE:</b> 256 312291583</p>
    <p><b><span>MOBILE:</b> 256 783073216 256 700139880</p>
    <p><b><span>E-mail:</b> info@techmindug.com</p>
    </div>
    </div>
    <ul class="banners wrapper">
    <li><a href="order.php">Bronze &nbsp; <b>#50,000</b></a></li>
    <li><a href="order.php">Silver &nbsp; <b>#100,000 </b></a></li>
    <li><a href="order.php">Gold &nbsp; <b>#150,000</b></a></li>
    <li><a href="order.php">Platinum &nbsp; <b>#200,000</b></a></li>
    </ul>
    <div class="inside1">
    <div class="wrap">
    <article class="col-1">
    <h2>Write To Us</h2>

    </address>

    <p class="p0">Fill in the form and let us know how you want us to help you, you can also use the form to place an order for either of our services,
    simply state the package or service you're interested in in the subject field of the contact form and we will contact right away to process it.You can also state the domain name
    of your interest together with your message. Just incase you do not receive any communication within a period of 24 hours, please telephone us right away or
    send us an a direct email message. Thanks
    ...............................................................</p>

    <article>

    <b>Tel: </b>+256783073216<br /><br />
    <b>Mob: </b>+256700139880<br /><br />
    <b>Email: </b>info@techmindug.com<br /><br />
    <b>Skype: </b>techmindug<br /><br />
    <b>Whatsapp: </b> +256783073216
    </article>
    </article>
    <article class="col-2">
    <h2>Contact Form</h2>
    <form id="contacts-form" action="contact.php" method="post">
    <fieldset>
    <div class="field text"><label>Your Name:</label><input type="text"></div>
    <div class="field text"><label>Subject:</label><input type="text"></div>
    <div class="field text"><label>E-mail:</label><input type="email"></div>
    <div class="field"><label>Your Message:</label><textarea></textarea></div>
    <div class="alignright"><a href="#" class="link4" onClick="document.getElementById('contacts-form').reset()"><span><span>Clear</span></span></a> <a href="contact.php" class="link2"><span><span>Send</span></span></a></div>
    </fieldset>
    </form>
    </article>
    <div class="clear"></div>
    </div>
    </div>
    </div>
    </div>
    </section>
    </div>
    <!-- aside -->
    <aside>
    <div class="container">
    <div class="inside">
    <div class="line-ver1">
    <div class="line-ver2">
    <div class="line-ver3">
    <div class="wrapper line-ver4">
    <ul class="list col-1">
    <li><b><a href=""></a></b></li>
    <img src="images/joomla.jpg" /></a>
    </ul>
    <ul class="list col-2">

    <img src="images/wordpress.jpg" /></a>
    <li><b><a href="sms.html">BULK SMS</a></b></li>
    </ul>
    <ul class="list col-3">

    <img src="images/microsoft.jpg" /></a>
    <li><b><a href="http://techmindug.blogspot.com/">RESOURCES</a></b></li>
    </ul>
    <ul class="list col-4">

    <img src="images/php.jpg" /></a>
    <li><b><a href="About Us.html">ABOUT US</a></b></li>
    </ul>
    <ul class="list col-5">
    <li><b><a href=""></a></b></li>
    <img src="images/mysql.jpg" />
    </ul>

    </div>
    </div>
    </div><h1><span></span>WE PROVIDE COMPLETE SOFTWARE & WEB SOLUTION</a></h1>
    </div>
    </div>
    </div>

    </aside>
    <!-- footer -->
    <footer>
    <div class="container">
    <div class="inside">
    <a rel="nofollow" href="http://www.techmindug.com" class="new_window">TECH MIND UG LTD</a><br>
    <a href="http://www.templates.com/product/3d-models/" class="new_window"></a> www.techmindug.com © 2014, All rights reserved
    </div>
    </div>
    </footer>
    <script type="text/javascript"> Cufon.now(); </script>
    </body>
    </html>
     
  2. Dawn

    Dawn Community Manager

    techmindugltd likes this.
  3. techmindugltd

    techmindugltd New Member

    Hi thanks, it really helped me get what i want :) big up!!!!
     
    Dawn likes this.
  4. Dawn

    Dawn Community Manager

    That's good to hear! Glad to be able to help :)
     
  5. mailtochakriyk

    mailtochakriyk New Member

  6. Hello Dear

    PHP Contact Form 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:<br>
    <input name="name" type="text" value="" size="30"/><br>
    Your email:<br>
    <input name="email" type="text" value="" size="30"/><br>
    Your message:<br>
    <textarea name="message" rows="7" cols="30"></textarea><br>
    <input type="submit" value="Send email"/>
    </form>
    <?php
    }
    else /* send the submitted data */
    {
    $name=$_REQUEST['name'];
    $email=$_REQUEST['email'];
    $message=$_REQUEST['message'];
    if (($name=="")||($email=="")||($message==""))
    {
    echo "All fields are required, please fill <a href=\"\">the form</a> again.";
    }
    else{
    $from="From: $name<$email>\r\nReturn-path: $email";
    $subject="Message sent using your contact form";
    mail("abcmail@yoursite.com", $subject, $message, $from);
    echo "Email sent!";
    }
    }
    ?>