PHP form Submission to email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
laxmee
Forum Newbie
Posts: 1
Joined: Thu Aug 20, 2015 2:07 am

PHP form Submission to email

Post by laxmee »

hi,
i have set contact form in php.

when i submit the form it shows thank you and messages sent. but not received the message to email box

Form page code : contactus1.php

Code: Select all

<!DOCTYPE html>

<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="icon" href="image/favicon1.ico" type="image/x-icon">
    
    <!-- This is Squarespace. --><!-- hari-menon-idk5 -->
<script charset="utf-8" id="yui_3_17_2_1_1423028317302_283" src="js/pinterest-67073476a1985644e993d4d017d79a71-min.js"></script><!--<base href="">--><base href=".">
<meta charset="utf-8">
<title>Karvensu Management consultants LLP</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>


<script type="text/javascript">
function CheckInputs()
{
 var OK
 if( document.isc.fname.value == "" )
{
alert( "Please Enter First name");
document.isc.fname.focus();
OK = false;
return OK;
}
else if( document.isc.lname.value == "" )
{
OK = false;
alert( "Please Enter Last Name");
document.isc.lname.focus();
return OK;
}
else if( document.isc.email.value == "" )
{
OK = false;
alert( "Please Enter Email Address");
document.isc.email.focus();
return OK;
}

else
{ OK=true
return OK;
}
}

function emailvalidation(entered, alertbox)
{
with (entered)
{entered.focus();
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2)
{
 if (alertbox) 
  {
   alert(alertbox);
   entered.focus();
  } 
  return false;
  entered.focus();
}
else {entered.focus();return true;}
}
} 

function digitvalidation(entered, min, max, alertbox, datatype)
{
 with (entered)
 {
  //document.isc.mobile.focus();
  checkvalue=parseFloat(value);
  if (datatype)
  {
   smalldatatype=datatype.toLowerCase();
   if (smalldatatype.charAt(0)=="i")
   {
    checkvalue=parseInt(value); 
    if (value.indexOf(".")!=-1)
    {
	checkvalue=checkvalue+1
	}
   };
 }
 if ((parseFloat(min)==min && value.length<min) || (parseFloat(max)==max && value.length>max) || value!=checkvalue)
 {
  if (alertbox!="")
   {alert(alertbox);
    value=="";
   } 
   return false;
   entered.focus(); 
 }
 else 
 {
 return true;
 }
}
} 

function getSelectedRadio(buttonGroup)
 {
   // returns the array number of the selected radio button or -1 if no button is selected
   if (buttonGroup[0]) 
   { // if the button group is an array (one button is not an array)
      for (var i=0; i<buttonGroup.length; i++) 
	  {
         if (buttonGroup[i].checked) 
		 {
            return i
         }
      }
   } 
   else 
   {
      if (buttonGroup.checked) { return 0; } // if the one button is checked, return zero
   }
   // if we get to this point, no radio button is selected
   //return -1;
   alert("hi radio")
} // Ends the "getSelectedRadio" function
</script>

<script type="text/javascript">SQUARESPACE_ROLLUPS = {};</script>
<script>(function(rollups, name) { if (!rollups[name]) { rollups[name] = {}; } rollups[name].js = ["//static.squarespace.com/universal/scripts-compressed/common-d8126a171f8f01c315b5f85ed3dda03a-min.js"]; })(SQUARESPACE_ROLLUPS, 'squarespace-common');</script>
<script>(function(rollups, name) { if (!rollups[name]) { rollups[name] = {}; } rollups[name].js = ["//static.squarespace.com/universal/scripts-compressed/commerce-439c3ba725436a72f9b7c7f852dbce92-min.js"]; })(SQUARESPACE_ROLLUPS, 'squarespace-commerce');</script>
<script>(function(rollups, name) { if (!rollups[name]) { rollups[name] = {}; } rollups[name].css = ["//static.squarespace.com/universal/styles-compressed/commerce-efa1d18482d123d8b41764e01b27bcd0-min.css"]; })(SQUARESPACE_ROLLUPS, 'squarespace-commerce');</script>
<script type="text/javascript" data-sqs-type="dynamic-assets-loader">
<!--

(function() {(function(a){function d(a){-1!==a.indexOf(".js")?document.write('<script type="text/javascript" src="'+a+'" onerror="__dynamicAssetLoaderErrorLogger(this)">\x3c/script>'):document.write('<link rel="stylesheet" type="text/css" href="'+a+'" onerror="__dynamicAssetLoaderErrorLogger(this)" />')}try{if(window.top!=window&&window.top.Squarespace&&window.top.Squarespace.frameAvailable){window.top.Squarespace.frameAvailable(window,SQUARESPACE_ROLLUPS);return}}catch(e){console.error(e)}window.__dynamicAssetLoaderErrorLogger=
function(a){var b=new XMLHttpRequest;b.open("GET","/api/rollups/error?path="+encodeURIComponent(a.src||a.href)+"&page="+encodeURIComponent(window.location.href),!0);b.send()};for(var c in a){if(a[c].js)for(var b=0;b<a[c].js.length;b++)d(a[c].js[b]);if(a[c].css)for(b=0;b<a[c].css.length;b++)d(a[c].css[b])}})(SQUARESPACE_ROLLUPS);
})();
//-->
</script>
<script type="text/javascript" src="js/common-d8126a171f8f01c315b5f85ed3dda03a-min.js" onerror="__dynamicAssetLoaderErrorLogger(this)"></script><script type="text/javascript" src="js/commerce-439c3ba725436a72f9b7c7f852dbce92-min.js" onerror="__dynamicAssetLoaderErrorLogger(this)"></script><link rel="stylesheet" type="text/css" href="css/commerce-efa1d18482d123d8b41764e01b27bcd0-min.css" onerror="__dynamicAssetLoaderErrorLogger(this)">



<!--[if !IE]> --><link rel="stylesheet" type="text/css" href="css/site.css"><!-- <![endif]-->
<!-- End of Squarespace Headers -->

<style type="text/css">
<!--
body,td,th {
	font-family: 'News Cycle';
}
body {

	background-repeat: repeat;
}
.style2 {
	color: #666666;
	font-size: 14px;
}
-->
</style>

<link href="css/font.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
	color: #FFFFFF;
}
a:hover {
	color: #000000;
}
-->
</style>
<link href="css/style.css" rel="stylesheet" type="text/css">


</head>

  <body class="transparent-header enable-nav-button nav-button-style-outline nav-button-corner-style-square banner-button-style-outline banner-button-corner-style-square banner-slideshow-controls-arrows meta-priority-category center-entry-title--meta  hide-list-entry-footer    hide-blog-sidebar   center-navigation--info  gallery-design-grid aspect-ratio-auto lightbox-style-light gallery-navigation-bullets gallery-info-overlay-show-on-hover gallery-aspect-ratio-32-standard gallery-arrow-style-no-background gallery-transitions-fade gallery-show-arrows gallery-auto-crop   product-list-titles-under product-list-alignment-center product-item-size-11-square product-image-auto-crop product-gallery-size-11-square  show-product-price show-product-item-nav product-social-sharing   event-thumbnails event-thumbnail-size-32-standard event-date-label event-date-label-time event-list-show-cats event-list-date event-list-time event-list-address   event-icalgcal-links  event-excerpts  event-item-back-link      opentable-style-light newsletter-style-light small-button-style-solid small-button-shape-square medium-button-style-outline medium-button-shape-square large-button-style-outline large-button-shape-square button-style-solid button-corner-style-square native-currency-code-usd collection-5496cd8ce4b0fd2ebe28511f collection-type-index collection-layout-default homepage view-list mobile-style-available has-banner-image index-page" id="collection-5496cd8ce4b0fd2ebe28511f" data-pin-hover="true">
  <div class="show-on-scroll-wrapper" id="showOnScrollWrapper"><header id="header" class="show-on-scroll" data-offset-el=".index-section" data-offset-behavior="bottom" role="banner">
        <div class="header-inner">
          <div id="logoWrapper" class="wrapper" data-content-field="site-title">
            
               <h1 id="logoImage"><a href="index.html"><img src="image/logo.png" alt="aaa"></a></h1>
          </div><!-- comment the linebreak between these two elements because science
          --><!-- comment the linebreak between these two elements because science
          --><div id="headerNav"><div id="mainNavWrapper" class="nav-wrapper" data-content-field="navigation-mainNav">
  <nav id="mainNavigation" data-content-field="navigation-mainNav">
    
      
        
        <div class="index active homepage">
          <a href="index.html">
            Home          </a>        </div>
        

        <div class="index">
          <a href="consulting.html">
            Consulting          </a>        </div>
        
  
        <div class="index">
          <a href="technology.html">
            Technology          </a>        </div>
        
 
        <div class="index">
          <a href="outsourcing.html">
            Outsourcing          </a>        </div>
        

          <div class="collection"></div>
  </nav>
</div>
<!-- style below blocks out the mobile nav toggle only when nav is loaded -->
<style>.mobile-nav-toggle-label { display: inline-block !important; }</style>


</div>
        </div>
      </header>
  </div>
    <input type="checkbox" name="mobile-nav-toggle" id="mobileNavToggle" class="mobile-nav-toggle-box hidden"><a href="#" class="body-overlay"></a>
    <div id="sidecarNav">
      <div id="mobileNavWrapper" class="nav-wrapper" data-content-field="navigation-mobileNav">
  <nav id="mobileNavigation">
    
      
        
        <div class="index active homepage">
          <a href="index.html">
            Home
          </a>
        </div>
        

        <div class="index">
          <a href="consulting.html">
            Consulting
          </a>
        </div>
        
 
        <div class="index">
          <a href="technology.html">
            Technology
          </a>
        </div>
        
    
        <div class="index">
          <a href="outsourcing.html">
            Outsourcing
          </a>
        </div>
   
        
          <div class="collection">
           
          </div>
          
 
  </nav>
</div>



    </div>
    <div id="siteWrapper" class="clearfix">

      <div class="sqs-cart-dropzone" style="top: 88px;"><div id="yui_3_17_2_1_1423028317302_294" class="yui3-widget sqs-widget sqs-pill-shopping-cart sqs-scalable-hidden" style="visibility: hidden; opacity: 0; transform: scale(0.94);"><div id="yui_3_17_2_1_1423028317302_296" class="sqs-pill-shopping-cart-content dark"><div class="icon"></div>

<div class="details">
  Cart&nbsp;-&nbsp;
    <span class="total-quantity">0</span>
    <span class="suffix">items</span></div>

<span class="subtotal">
  <span class="price"><span class="sqs-money-native">0.00</span></span></span></div>
      </div></div>

      <header id="header" class="show-on-scroll" data-offset-el=".index-section" data-offset-behavior="bottom" role="banner">
        <div class="header-inner" id="yui_3_17_2_1_1423028317302_453">
          <div id="logoWrapper" class="wrapper" data-content-field="site-title">
            
              <h1 id="logoImage"><a href="#"><img src="image/logo.png" alt="Fiddich | Consulting, Technology, and Outsourcing Services"></a></h1>
          </div><!-- comment the linebreak between these two elements because science
          --><label for="mobileNavToggle" class="mobile-nav-toggle-label"><div class="top-bar"></div><div class="middle-bar"></div><div class="bottom-bar"></div></label><label for="mobileNavToggle" class="mobile-nav-toggle-label fixed-nav-toggle-label"><div class="top-bar"></div><div class="middle-bar"></div><div class="bottom-bar"></div></label><!-- comment the linebreak between these two elements because science
          --><div id="headerNav"><div id="mainNavWrapper" class="nav-wrapper" data-content-field="navigation-mainNav">
  <nav id="mainNavigation" data-content-field="navigation-mainNav">
    
      
        
        <div class="index homepage" id="yui_3_17_2_1_1423028317302_452">
          <a href="index.html">
            Home          </a>        </div>
        
      

    
      
        
        <div class="index" id="yui_3_17_2_1_1423028317302_468">
          <a href="consulting.html" id="yui_3_17_2_1_1423028317302_472">
            Consulting          </a>        </div>
        
      

    
      
        
        <div class="index">
          <a href="technology.html">
            Technology          </a>        </div>
        
      

    
      
        
        <div class="index">
          <a href="outsourcing.html">
            Outsourcing          </a>        </div>
        
		<div class="collection">            </div>
  </nav>
</div>
<!-- style below blocks out the mobile nav toggle only when nav is loaded -->
<style>.mobile-nav-toggle-label { display: inline-block !important; }</style>


</div>
        </div>
      </header>

      
        
          
            
            
          
        
      


      
      
      

      <main id="page" role="main">
        <!-- comment the linebreak between these two elements because science
        --><!-- comment the linebreak between these two elements because science
        --><div id="content" class="main-content" data-content-field="main-content">
         <!-- Create index sections -->

  
  <div id="intro" class="index-section" data-url-id="intro">
    <div class="promoted-gallery-wrapper"></div>
    
    <div class="banner-thumbnail-wrapper has-description" data-content-field="main-image" id="yui_3_17_2_1_1423028317302_458">
      <div class="color-overlay"></div>
      <figure id="thumbnail" class="loading content-fill" style="overflow: hidden;"><img data-src="" data-image="" data-image-dimensions="1600x350" data-image-focal-point="0.5,0.5" alt="contactus.jpg" class="" src="image/contactus.jpg" data-image-resolution="1500w" style="top: 0px; left: 0px; width: 1343px; height: 343px; position: relative;"></figure>
      <div class="desc-wrapper" data-collection-id="549c33c1e4b0df76871b52f2" id="yui_3_17_2_1_1423028317302_457"><p id="yui_3_17_2_1_1423028317302_345"><strong data-shrink-original-size="auto" style="font-size:75/50px; font-weight:100px; font-family:'Open Sans Condensed'; line-height:auto; color:#fff; font-style:none">Contact Us</strong></p><br>
</div>
    </div>
    
  
  <div id="flatiron-forum" class="index-section" data-url-id="flatiron-forum">
    <div class="promoted-gallery-wrapper"></div>
    
     <div class="index-section-wrapper page-content">
      <div class="content-inner has-content" data-content-field="main-content">
        <div class="sqs-layout sqs-grid-12 columns-12" data-type="page" data-updated-on="1420976230898" id="page-5496d989e4b0bc65ffa6bc35"><div class="row sqs-row"><div class="col sqs-col-12 span-12"><div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-715473a1969ae6976a34"><div class="sqs-block-content"><h2 style="font-size:22/0px; line-height:30px;" align="center">Thank you for your interest in KarVenSu. We appreciate the opportunity to interact with you!</h2>
        </div></div><div class="row sqs-row"><div class=""><div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-yui_3_17_2_19_1419607256554_11563"><div class="sqs-block-content">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><form name="isc" id="isc" onSubmit="return CheckInputs();" method="post" action="thankyou1.php">

	
<div id="yui_3_17_2_1_1423028317302_168"><div class="col sqs-col-5 span-4" id="yui_3_17_2_1_1423028317302_167"><div class="sqs-block image-block sqs-block-image" data-block-type="5" id="block-3c406aa69d0ee0453fb2"><div class="sqs-block-content" id="yui_3_17_2_1_1423028317302_166">
	<div class="image-block-outer-wrapper layout-caption-hidden " id="yui_3_17_2_1_1423028317302_165">
	
		<div class="intrinsic" style="max-width:2500.0px;" id="yui_3_17_2_1_1423028317302_164">
			
				<div class="form-text3">First Name*</div><label class="form-text4">
                <input name="fname" type="text" class="more3" size="30" />
                </label>
				
				<div class="form-text3">Last Name*</div><label class="form-text4">
                <input name="lname" type="text" class="more3" size="30" />
                </label>
				
				<div class="form-text3">Email Address*</div><label class="form-text4">
                <input name="email" type="text" class="more3" size="30" />
                </label>
				
				<div class="form-text3">Service Required</div><label class="form-text4">
                  <select name="service" class="more3">
                    <option>-- Select --</option>
                    <option>General Inquiry</option>
                    <option>Consulting</option>
                    <option>Technology</option>
                    <option>Outsourcing</option>
                  </select>
                </label>
                <div class="form-text3"> Type verification code*</div>
                <label class="form-text4">
                <input name="verif_box" type="text" class="more3" size="15" />  
                </label><img src="verificationimage.php?<?php echo rand(0,9999);?>" alt="verification image, type it in the box" width="50" height="30" align="left" /> 
                	<br/> <?php if(isset($_GET['wrong_code'])){?>
<div style="border:1px solid #990000; background-color:#D70000; color:#FFFFFF; padding:4px; padding-left:6px;width:295px;">Wrong verification code</div><br /> 
<?php ;}?>			</div>
	</div>
</div></div></div></div>


<div id="yui_3_17_2_1_1423028317302_168"><div class="col-- sqs-col-6 span-4--" id="yui_3_17_2_1_1423028317302_167"><div class="sqs-block image-block sqs-block-image" data-block-type="5" id="block-3c406aa69d0ee0453fb2"><div class="sqs-block-content" id="yui_3_17_2_1_1423028317302_166">
	<div class="image-block-outer-wrapper layout-caption-hidden " id="yui_3_17_2_1_1423028317302_165">
	
		<div class="intrinsic" style="max-width:2500.0px;" id="yui_3_17_2_1_1423028317302_164">
			
				<div class="form-text3a">How can we help you</div><label class="form-text4">
                 <textarea name="message" cols="27" rows="7" class="more3"></textarea>
                </label>
				
				<div class="form-text3a">*Items are required</div><label class="botton-text4">
                <input name="Submit" type="submit" class="buttonx3" value="Submit" />
                </label>
				
				
				
				
				</div>
	</div>
</div></div></div></div>



    </form>
    </td>
  </tr>
</table>
        </div></div></div></div></div></div></div>
      </div>
    </div>
  </div>
  </div>
  

        </div><!-- comment the linebreak between these two elements because science
        -->
  </div></div></div></div></div></div></div></div></div>

      <div id="preFooter" class="">
        <div class="pre-footer-inner">
          <div class="sqs-grid-12 columns-12" data-layout-label="Pre-Footer Content" data-type="block-field" data-updated-on="1420013491500" id="preFooterBlocks"><div class="row sqs-row">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="20">&nbsp;</td>
                </tr>
              </table>
            </div>
          </div></div></div>
<footer id="footer" role="contentinfo">
          <div class="footer-inner">
          
          
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="51%" valign="top"><p class="text-align-left" align="center"><span style="font-size:16px">Copyright  © Karvensu Management Consultancy LLP 2015</span></p></td>
              <td width="49%"><div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-yui_3_17_2_11_1420009736093_57686"><div class="sqs-block-content" style="font-size:16px" align="center"><a href="index.html">Home</a> <a href="consulting.html" style="margin-left: 15px;">Consulting</a> <a href="technology.html" style="margin-left: 15px;">Technology</a> <a href="outsourcing.html" style="margin-left: 15px;">Outsourcing</a> <a href="contactus.html" style="margin-left: 15px;">Connect with Us</a></div>
              </div></td>
            </tr>
          </table>
        </div>
  </footer>
    </div>

    <script type="text/javascript" src="image/saved_resource(1)"></script>
    
    
    
    <script type="text/javascript" data-sqs-type="imageloader" src="js/imageloader.js"></script>
<script>Squarespace.afterBodyLoad(Y);</script>

  

</body></html>
==============
server side code : thankyou1.php

Code: Select all

<!DOCTYPE html>

<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="icon" href="image/favicon1.ico" type="image/x-icon">
    
    <!-- This is Squarespace. --><!-- hari-menon-idk5 -->
<script charset="utf-8" id="yui_3_17_2_1_1423028317302_283" src="js/pinterest-67073476a1985644e993d4d017d79a71-min.js"></script><!--<base href="">--><base href=".">
<meta charset="utf-8">
<title>Karvensu Management consultants LLP</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>




<script type="text/javascript">SQUARESPACE_ROLLUPS = {};</script>
<script>(function(rollups, name) { if (!rollups[name]) { rollups[name] = {}; } rollups[name].js = ["//static.squarespace.com/universal/scripts-compressed/common-d8126a171f8f01c315b5f85ed3dda03a-min.js"]; })(SQUARESPACE_ROLLUPS, 'squarespace-common');</script>
<script>(function(rollups, name) { if (!rollups[name]) { rollups[name] = {}; } rollups[name].js = ["//static.squarespace.com/universal/scripts-compressed/commerce-439c3ba725436a72f9b7c7f852dbce92-min.js"]; })(SQUARESPACE_ROLLUPS, 'squarespace-commerce');</script>
<script>(function(rollups, name) { if (!rollups[name]) { rollups[name] = {}; } rollups[name].css = ["//static.squarespace.com/universal/styles-compressed/commerce-efa1d18482d123d8b41764e01b27bcd0-min.css"]; })(SQUARESPACE_ROLLUPS, 'squarespace-commerce');</script>
<script type="text/javascript" data-sqs-type="dynamic-assets-loader">
<!--

(function() {(function(a){function d(a){-1!==a.indexOf(".js")?document.write('<script type="text/javascript" src="'+a+'" onerror="__dynamicAssetLoaderErrorLogger(this)">\x3c/script>'):document.write('<link rel="stylesheet" type="text/css" href="'+a+'" onerror="__dynamicAssetLoaderErrorLogger(this)" />')}try{if(window.top!=window&&window.top.Squarespace&&window.top.Squarespace.frameAvailable){window.top.Squarespace.frameAvailable(window,SQUARESPACE_ROLLUPS);return}}catch(e){console.error(e)}window.__dynamicAssetLoaderErrorLogger=
function(a){var b=new XMLHttpRequest;b.open("GET","/api/rollups/error?path="+encodeURIComponent(a.src||a.href)+"&page="+encodeURIComponent(window.location.href),!0);b.send()};for(var c in a){if(a[c].js)for(var b=0;b<a[c].js.length;b++)d(a[c].js[b]);if(a[c].css)for(b=0;b<a[c].css.length;b++)d(a[c].css[b])}})(SQUARESPACE_ROLLUPS);
})();
//-->
</script>
<script type="text/javascript" src="js/common-d8126a171f8f01c315b5f85ed3dda03a-min.js" onerror="__dynamicAssetLoaderErrorLogger(this)"></script><script type="text/javascript" src="js/commerce-439c3ba725436a72f9b7c7f852dbce92-min.js" onerror="__dynamicAssetLoaderErrorLogger(this)"></script><link rel="stylesheet" type="text/css" href="css/commerce-efa1d18482d123d8b41764e01b27bcd0-min.css" onerror="__dynamicAssetLoaderErrorLogger(this)">



<!--[if !IE]> --><link rel="stylesheet" type="text/css" href="css/site.css"><!-- <![endif]-->
<!-- End of Squarespace Headers -->

<style type="text/css">
<!--
body,td,th {
	font-family: 'News Cycle';
}
body {

	background-repeat: repeat;
}
.style2 {
	color: #666666;
	font-size: 14px;
}
-->
</style>

<link href="css/font.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
	color: #FFFFFF;
}
a:hover {
	color: #000000;
}
-->
</style>
<link href="css/style.css" rel="stylesheet" type="text/css">


</head>

  <body class="transparent-header enable-nav-button nav-button-style-outline nav-button-corner-style-square banner-button-style-outline banner-button-corner-style-square banner-slideshow-controls-arrows meta-priority-category center-entry-title--meta  hide-list-entry-footer    hide-blog-sidebar   center-navigation--info  gallery-design-grid aspect-ratio-auto lightbox-style-light gallery-navigation-bullets gallery-info-overlay-show-on-hover gallery-aspect-ratio-32-standard gallery-arrow-style-no-background gallery-transitions-fade gallery-show-arrows gallery-auto-crop   product-list-titles-under product-list-alignment-center product-item-size-11-square product-image-auto-crop product-gallery-size-11-square  show-product-price show-product-item-nav product-social-sharing   event-thumbnails event-thumbnail-size-32-standard event-date-label event-date-label-time event-list-show-cats event-list-date event-list-time event-list-address   event-icalgcal-links  event-excerpts  event-item-back-link      opentable-style-light newsletter-style-light small-button-style-solid small-button-shape-square medium-button-style-outline medium-button-shape-square large-button-style-outline large-button-shape-square button-style-solid button-corner-style-square native-currency-code-usd collection-5496cd8ce4b0fd2ebe28511f collection-type-index collection-layout-default homepage view-list mobile-style-available has-banner-image index-page" id="collection-5496cd8ce4b0fd2ebe28511f" data-pin-hover="true">
  
  <div class="show-on-scroll-wrapper" id="showOnScrollWrapper"><header id="header" class="show-on-scroll" data-offset-el=".index-section" data-offset-behavior="bottom" role="banner">
        <div class="header-inner">
          <div id="logoWrapper" class="wrapper" data-content-field="site-title">
            
               <h1 id="logoImage"><a href="index.html"><img src="image/logo.png" alt="aaa"></a></h1>
          </div><!-- comment the linebreak between these two elements because science
          --><!-- comment the linebreak between these two elements because science
          --><div id="headerNav"><div id="mainNavWrapper" class="nav-wrapper" data-content-field="navigation-mainNav">
  <nav id="mainNavigation" data-content-field="navigation-mainNav">
    
      
        
        <div class="index active homepage">
          <a href="index.html">
            Home          </a>        </div>
        

        <div class="index">
          <a href="consulting.html">
            Consulting          </a>        </div>
        
  
        <div class="index">
          <a href="technology.html">
            Technology          </a>        </div>
        
 
        <div class="index">
          <a href="outsourcing.html">
            Outsourcing          </a>        </div>
        

          <div class="collection"></div>
  </nav>
</div>
<!-- style below blocks out the mobile nav toggle only when nav is loaded -->
<style>.mobile-nav-toggle-label { display: inline-block !important; }</style>


</div>
        </div>
      </header>
  </div>
    <input type="checkbox" name="mobile-nav-toggle" id="mobileNavToggle" class="mobile-nav-toggle-box hidden"><a href="#" class="body-overlay"></a>
    <div id="sidecarNav">
      <div id="mobileNavWrapper" class="nav-wrapper" data-content-field="navigation-mobileNav">
  <nav id="mobileNavigation">
    
      
        
        <div class="index active homepage">
          <a href="index.html">
            Home
          </a>
        </div>
        

        <div class="index">
          <a href="consulting.html">
            Consulting
          </a>
        </div>
        
 
        <div class="index">
          <a href="technology.html">
            Technology
          </a>
        </div>
        
    
        <div class="index">
          <a href="outsourcing.html">
            Outsourcing
          </a>
        </div>
   
        
          <div class="collection">
           
          </div>
          
 
  </nav>
</div>



    </div>
    <div id="siteWrapper" class="clearfix">

      <div class="sqs-cart-dropzone" style="top: 88px;"><div id="yui_3_17_2_1_1423028317302_294" class="yui3-widget sqs-widget sqs-pill-shopping-cart sqs-scalable-hidden" style="visibility: hidden; opacity: 0; transform: scale(0.94);"><div id="yui_3_17_2_1_1423028317302_296" class="sqs-pill-shopping-cart-content dark"><div class="icon"></div>

<div class="details">
  Cart&nbsp;-&nbsp;
    <span class="total-quantity">0</span>
    <span class="suffix">items</span></div>

<span class="subtotal">
  <span class="price"><span class="sqs-money-native">0.00</span></span></span></div>
      </div></div>

      <header id="header" class="show-on-scroll" data-offset-el=".index-section" data-offset-behavior="bottom" role="banner">
        <div class="header-inner" id="yui_3_17_2_1_1423028317302_453">
          <div id="logoWrapper" class="wrapper" data-content-field="site-title">
            
              <h1 id="logoImage"><a href="#"><img src="image/logo.png" alt="Fiddich | Consulting, Technology, and Outsourcing Services"></a></h1>
          </div><!-- comment the linebreak between these two elements because science
          --><label for="mobileNavToggle" class="mobile-nav-toggle-label"><div class="top-bar"></div><div class="middle-bar"></div><div class="bottom-bar"></div></label><label for="mobileNavToggle" class="mobile-nav-toggle-label fixed-nav-toggle-label"><div class="top-bar"></div><div class="middle-bar"></div><div class="bottom-bar"></div></label><!-- comment the linebreak between these two elements because science
          --><div id="headerNav"><div id="mainNavWrapper" class="nav-wrapper" data-content-field="navigation-mainNav">
  <nav id="mainNavigation" data-content-field="navigation-mainNav">
    
      
        
        <div class="index homepage" id="yui_3_17_2_1_1423028317302_452">
          <a href="index.html">
            Home          </a>        </div>
        
      

    
      
        
        <div class="index" id="yui_3_17_2_1_1423028317302_468">
          <a href="consulting.html" id="yui_3_17_2_1_1423028317302_472">
            Consulting          </a>        </div>
        
      

    
      
        
        <div class="index">
          <a href="technology.html">
            Technology          </a>        </div>
        
      

    
      
        
        <div class="index">
          <a href="outsourcing.html">
            Outsourcing          </a>        </div>
        
		<div class="collection">            </div>
  </nav>
</div>
<!-- style below blocks out the mobile nav toggle only when nav is loaded -->
<style>.mobile-nav-toggle-label { display: inline-block !important; }</style>


</div>
        </div>
      </header>

      
        
          
            
            
          
        
      


      
      
      

      <main id="page" role="main">
        <!-- comment the linebreak between these two elements because science
        --><!-- comment the linebreak between these two elements because science
        --><div id="content" class="main-content" data-content-field="main-content">
         <!-- Create index sections -->

  
  <div id="intro" class="index-section" data-url-id="intro">
    <div class="promoted-gallery-wrapper"></div>
    
    <div class="banner-thumbnail-wrapper has-description" data-content-field="main-image" id="yui_3_17_2_1_1423028317302_458">
      <div class="color-overlay"></div>
      <figure id="thumbnail" class="loading content-fill" style="overflow: hidden;"><img data-src="" data-image="" data-image-dimensions="1600x350" data-image-focal-point="0.5,0.5" alt="contactus.jpg" class="" src="image/contactus.jpg" data-image-resolution="1500w" style="top: 0px; left: 0px; width: 1343px; height: 343px; position: relative;"></figure>
      <div class="desc-wrapper" data-collection-id="549c33c1e4b0df76871b52f2" id="yui_3_17_2_1_1423028317302_457"><p id="yui_3_17_2_1_1423028317302_345"><strong data-shrink-original-size="auto" style="font-size:75/50px; font-weight:100px; font-family:'Open Sans Condensed'; line-height:auto; color:#fff; font-style:none">Contact Us</strong></p><br>
</div>
    </div>
    
  
  <div id="flatiron-forum" class="index-section" data-url-id="flatiron-forum">
    <div class="promoted-gallery-wrapper"></div>
    
     <div class="index-section-wrapper page-content">
      <div class="content-inner has-content" data-content-field="main-content">
        <div class="sqs-layout sqs-grid-12 columns-12" data-type="page" data-updated-on="1420976230898" id="page-5496d989e4b0bc65ffa6bc35"><div class="row sqs-row"><div class="col sqs-col-12 span-12"><div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-715473a1969ae6976a34"><div class="sqs-block-content"><h2 style="font-size:22/0px; line-height:30px;" align="center">Thank You!</h2>
        </div></div><div class="row sqs-row"><div class=""><div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-yui_3_17_2_19_1419607256554_11563"><div class="sqs-block-content">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center" class="title_13">Your
      message was sent successfully.</div>
    </td>
  </tr>
</table>
        </div></div></div></div></div></div></div>
      </div>
    </div>
  </div>
  </div>
  

        </div><!-- comment the linebreak between these two elements because science
        -->
  </div></div></div></div></div></div></div></div></div>

      <div id="preFooter" class="">
        <div class="pre-footer-inner">
          <div class="sqs-grid-12 columns-12" data-layout-label="Pre-Footer Content" data-type="block-field" data-updated-on="1420013491500" id="preFooterBlocks"><div class="row sqs-row">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="20">&nbsp;</td>
                </tr>
              </table>
            </div>
          </div></div></div>
<footer id="footer" role="contentinfo">
          <div class="footer-inner">
          
          
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="51%" valign="top"><p class="text-align-left" align="center"><span style="font-size:16px">Copyright  © Karvensu Management Consultancy LLP 2015</span></p></td>
              <td width="49%"><div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-yui_3_17_2_11_1420009736093_57686"><div class="sqs-block-content" style="font-size:16px" align="center"><a href="index.html">Home</a> <a href="consulting.html" style="margin-left: 15px;">Consulting</a> <a href="technology.html" style="margin-left: 15px;">Technology</a> <a href="outsourcing.html" style="margin-left: 15px;">Outsourcing</a> <a href="contactus.html" style="margin-left: 15px;">Connect with Us</a></div>
              </div></td>
            </tr>
          </table>
        </div>
  </footer>
    </div>

 
  <?php
// ----------------------------------------- 
//  The Web Help .com
// ----------------------------------------- 
// remember to replace your@email.com with your own email address lower in this code.

// load the variables form address bar
$fname = $_REQUEST["fname"];
$lname = $_REQUEST["lname"];
$email = $_REQUEST["email"];
$service = $_REQUEST["service"];
$message = $_REQUEST["message"];

// remove the backslashes that normally appears when entering " or '
$fname = stripslashes($fname); 
$lname = stripslashes($lname); 
$message = stripslashes($message); 
$from = stripslashes($from); 

// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
	// if verification code was correct send the message and show this page
	$message = "First Name: ".$fname."\n".$message;
	$message = "Last name: ".$lname."\n".$message;
		$message = "Email Address : ".$email."\n".$message;
			$message = "Service Required: ".$service."\n".$message;

	$message = "From: ".$from."\n".$message;

	mail("marketing@jayamwebsolutions.com", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
	// delete the cookie so it cannot sent again by refreshing this page
	setcookie('tntcon','');
} else {
	// if verification code was incorrect then return to contact page and show error
	header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
	exit;
}
?>

</body></html>
============

Can anyone let me know how to rectify this.
Last edited by Celauran on Thu Aug 20, 2015 5:56 am, edited 1 time in total.
Reason: Please wrap your code in syntax tags
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: PHP form Submission to email

Post by Celauran »

laxmee wrote:but not received the message to email box
Is it being sent?
Post Reply