php - how to $_POST form attributes to another file -


this thank page i trying have someones name displayed "thank john, ..." can't seem have post name. $first_name in php file

<?php include("email.php"); ?>  <!doctype html public "-//w3c//dtd html 4.0 transitional//en""http://www.w3.org/tr/rec-html40/loose.dtd">  <html>  <head>  <meta http-equiv="content-type" content="text/html; charset=utf-8">  <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">  <link href='http://fonts.googleapis.com/css?family=open+sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>  <base target="_blank">  <title>mid-night designs</title>  <style type="text/css">    body *{font-family: 'open sans', arial, sans-serif !important}    div, p, a, li, td { -webkit-text-size-adjust:none; }    *{-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}  td{word-break: break-word;}  a{word-break: break-word; text-decoration: none; color: inherit;}    body .readmsgbody  {width: 100%; background-color: #ffffff;}  body .externalclass  {width: 100%; background-color: #ffffff;}  body{width: 100%; height: 100%; background-color: #ffffff; margin:0; padding:0; -webkit-font-smoothing: antialiased;}  html{ background-color:#ffffff; width: 100%;}    body p {padding: 0!important; margin-top: 0!important; margin-right: 0!important; margin-bottom: 0!important; margin-left: 0!important; }  body img {user-drag: none; -moz-user-select: none; -webkit-user-drag: none;}  body a.rotator img {-webkit-transition: 1s ease-in-out;-moz-transition: 1s ease-in-out; -o-transition: 1s ease-in-out; -ms-transition: 1s ease-in-out; }  body a.rotator img:hover {-webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg);-ms-transform: rotate(360deg); }  body .hover:hover {opacity:0.85;filter:alpha(opacity=85);}  body .jump:hover {opacity:0.75; filter:alpha(opacity=75); padding-top: 10px!important;}    body .logo img {width: 150px; height: auto;}  body .icon25 img {width: 25px; height: auto;}  body .icon18 img {width: 18px; height: auto;}    </style>    <style type="text/css">@media screen , (max-width: 640px){  		body body{width:auto!important;}  		body table[class=full] {width: 100%!important; clear: both; }  		body table[class=mobile] {width: 100%!important; padding-left: 30px; padding-right: 30px; clear: both; }  		body table[class=fullcenter] {width: 100%!important; text-align: center!important; clear: both; }  		body td[class=fullcenter] {width: 100%!important; text-align: center!important; clear: both; }  		body .erase {display: none;}  		body .buttonscale {float: none!important; text-align: center!important; display: inline-block!important; clear: both;}  		body td[class=pad20] {padding-left: 20px!important; padding-right: 20px!important; text-align: center!important; clear: both; }    }</style>    <style type="text/css">@media screen , (max-width: 479px){   		body body{width:auto!important;}  		body table[class=full] {width: 100%!important; clear: both; }  		body table[class=mobile] {width: 100%!important; padding-left: 20px; padding-right: 20px; clear: both; }  		body table[class=fullcenter] {width: 100%!important; text-align: center!important; clear: both; }  		body td[class=fullcenter] {width: 100%!important; text-align: center!important; clear: both; }  		body .erase {display: none;}  		body .buttonscale {float: none!important; text-align: center!important; display: inline-block!important; clear: both;}  		body td[class=pad20] {padding-left: 20px!important; padding-right: 20px!important; text-align: center!important; clear: both; }  		    }</style>    </head>    <body style='margin: 0; padding: 0;'>        <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="full" bgcolor="#1e1e1e" style="background-color: #1e1e1e;">  	<tbody><tr>  		<td align="center">  		  			<table class="full" align="center" border="0" width="100%" cellpadding="0" cellspacing="0">  				<tbody><tr>  					<td align="center" class="pad20">  					  						<table width="500" border="0" cellpadding="0" cellspacing="0" align="center" class="full">  							<tbody><tr>  								<td width="100%" height="15" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  							<tr>  								<td valign="middle" width="100%" style="font-family: helvetica, arial, sans-serif, 'open sans'; color: #929292; font-weight: 400; font-size: 12px; line-height: 20px; text-align: center;">  									<br>  								</td>  							</tr>  							<tr>  								<td width="100%" height="40" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  							<tr>  								<td valign="middle" align="center" width="100%" class="logo" style="line-height: 1px; text-align: center;"></td>  							</tr>  							<tr>  								<td width="100%" height="30" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  						</tbody></table>  						  					</td>  				</tr>  			</tbody></table>  			  		</td>  	</tr>  </table><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="full" bgcolor="#1e1e1e" style="background-color: #1e1e1e;">  	<tbody><tr>  		<td align="center" class="pad20">  		  			<table class="full" align="center" border="0" width="500" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="background-color: #ffffff; border-top-left-radius: 5px; border-top-right-radius: 5px;">  				<tbody><tr>  					<td width="100%" height="30" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  				</tr>  			</tbody></table>  			  		</td>  	</tr>  </tbody></table>    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="full" bgcolor="#1e1e1e" style="background-color: #1e1e1e;">  	<tbody><tr>  		<td align="center" class="pad20">  		  			<table class="full" align="center" border="0" width="500" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="background-color: #ffffff;">  				<tbody><tr>  					<td align="center" class="pad20">  					  						<table width="450" border="0" cellpadding="0" cellspacing="0" align="center" class="full">  							<tbody><tr>  								<td width="100%" height="10" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  							<tr>  								<td valign="middle" width="100%" style="font-family: helvetica, arial, sans-serif, 'open sans'; color: #111111; font-weight: 800; font-size: 30px; line-height: 36px; text-align: center; text-transform: uppercase;">  									thank you!  								</td>  							</tr>  							<tr>  								<td width="100%" height="20" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  							<tr>  								<td width="100%" style="color: #929292; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 400; vertical-align: top; font-size: 14px; text-align: center; line-height: 22px;" class="fullcenter">  									<span style="color:#000000;"><span style="font-size:14px;"><strong>thank you<?php echo $_post['first_name'];?>  , using our quote calculator. if have further questions feel free contact us!</strong></span></span>  								</td>  							</tr>  							<tr>  								<td width="100%" height="20" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  						</tbody></table>  						  					</td>  				</tr>  			</tbody></table>  			  		</td>  	</tr>  </table>                                <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="full" bgcolor="#1e1e1e" style="background-color: #1e1e1e;">  	<tbody><tr>  		<td align="center" class="pad20">  		  			<table class="full" align="center" border="0" width="500" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="background-color: #ffffff;">  				<tbody><tr>  					<td width="100%" height="30" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  				</tr>  				<tr>  					<td align="center" class="pad20">  											  						<table width="450" border="0" cellpadding="0" cellspacing="0" align="center" class="full">  							<tbody><tr>  								<td valign="top" width="100%">  								  									<table width="75" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" class="fullcenter">  										<tbody><tr>  											<td valign="middle" align="center" width="30" class="fullcenter" style="line-height: 1px;"></td>  										</tr>  									</tbody></table>  									  									<table width="15" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" class="full">  										<tbody><tr>  											<td width="100%" height="10" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  										</tr>  									</tbody></table>  									  									<table width="350" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" class="fullcenter">  										<tbody><tr>  											<td width="100%" style="color: #111111; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 700; vertical-align: top; font-size: 13px; text-align: left; line-height: 24px;" class="fullcenter">  												lorenzo preciado  											</td>  										</tr>  										<tr>  											<td width="100%" style="color: #61b94d; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 600; vertical-align: top; font-size: 13px; text-align: left; line-height: 24px text-transform: uppercase;" class="fullcenter">  												<span style="color:#000000;">web designer &amp; developer&nbsp;</span>  											</td>  										</tr>  										<tr>  											<td width="100%" style="color: #929292; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 400; vertical-align: top; font-size: 13px; text-align: left; line-height: 24px;" class="fullcenter">  												owner of mid-night designs  											</td>  										</tr>  										<tr>  											<td width="100%" style="color: #929292; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 400; vertical-align: top; font-size: 13px; text-align: left; line-height: 24px;" class="fullcenter">  												+81 080-6499-4974 &nbsp; |&nbsp;&nbsp; <a  href="#" style="text-decoration: none; color: #929292;">h</a>elp@mid-nightdesigns.com  											</td>  										</tr>  										<tr>  											<td width="100%" height="5" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  										</tr>  										<tr>  											<td width="100%" align="center" class="icon18">  											  												<!-- social icons -->  												<table width="120" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" class="buttonscale">  													<tbody><tr>  														<td valign="middle" align="left" width="30" class="buttonscale" style="line-height: 1px;"></td>  														<td valign="middle" align="left" width="30" class="buttonscale" style="line-height: 1px;"></td>  														<td valign="middle" align="left" width="30" class="buttonscale" style="line-height: 1px;"></td>  														<td valign="middle" align="left" width="30" class="buttonscale" style="line-height: 1px;"></td>  													</tr>  												</tbody></table>  												  											</td>  										</tr>  									</tbody></table>  									  								</td>  							</tr>  							<tr>  								<td width="100%" height="10" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  						</tbody></table>  						  					</td>  				</tr>  			</tbody></table>  			  		</td>  	</tr>  </table>    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="full" bgcolor="#1e1e1e" style="background-color: #1e1e1e;">  	<tbody><tr>  		<td align="center" class="pad20">  		  			<table class="full" align="center" border="0" width="500" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="background-color: #ffffff; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;">  				<tbody><tr>  					<td width="100%" height="30" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  				</tr>  			</tbody></table>  			  		</td>  	</tr>  </tbody></table>    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="full" bgcolor="#1e1e1e" style="background-color: #1e1e1e;">  	<tbody><tr>  		<td width="100%" valign="top" align="center">  			  			<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="mobile">  				<tbody><tr>  					<td align="center">  						  						<table width="450" border="0" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; text-align: center;" class="fullcenter">  							<tbody><tr>  								<td width="100%" height="30" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  							<tr>  								<td width="100%" style="color: #d2d2d2; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 400; vertical-align: top; font-size: 12px; text-align: center; line-height: 24px;" class="fullcenter">  									© copyright - <a  href="http://mid-nightdesigns.com" style="text-decoration: none;">mid-nightd<span style="color:#ffffff;"></span>esigns.com</a>  								</td>  							</tr>  							<tr>  								<td width="100%" style="color: #61b94d; font-family: helvetica, arial, sans-serif, 'open sans'; font-weight: 400; vertical-align: top; font-size: 12px; text-align: center; line-height: 24px;" class="fullcenter">  									<a href="#" style="text-decoration: none; color: #61b94d;"><br></a>  								</td>  							</tr>  							<tr>  								<td width="100%" height="50" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  							<tr>  								<td width="100%" height="1" style="font-size: 1px; line-height: 1px;">&nbsp;</td>  							</tr>  						</tbody></table>  						  					</td>  				</tr>  			</tbody></table>  		  		</td>  	</tr>  </tbody></table>  </body>  </html>

this portion of form

 <label>                  first name                     <input name="first_name" type="text" required="required" class="sv_validate" placeholder="first name">                </label>
part of email.php , works, displaying name in email sent doesn't work in thank you.
 $first_name = $_post['first_name'];

php file receives post somewthing along lines of

<?php session_start();  $_session['name'] = $_post['first_name'];  ?> 

second file be

<?php session_start();  echo $_session['name']; ?> 

not recommended that's basis. can't set session on same page , call on same page.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -