<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uncategorized Archives - Cody Paste</title>
	<atom:link href="https://www.codypaste.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codypaste.com/category/uncategorized/</link>
	<description>THE WEB PLAYGROUND</description>
	<lastBuildDate>Thu, 18 Jan 2024 07:15:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.codypaste.com/wp-content/uploads/2022/12/cropped-codypaste-32x32.png</url>
	<title>Uncategorized Archives - Cody Paste</title>
	<link>https://www.codypaste.com/category/uncategorized/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Compare Date time in PHP</title>
		<link>https://www.codypaste.com/compare-date-time-in-php/</link>
					<comments>https://www.codypaste.com/compare-date-time-in-php/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Fri, 10 Feb 2017 06:48:26 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=560</guid>

					<description><![CDATA[<p>[crayon-69ec3a0bb7a27560405529/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/compare-date-time-in-php/">Compare Date time in PHP</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
date_default_timezone_set('Asia/Kolkata');

//Current Date
$CurrentDate=date("d-m-Y h:i:s");

// End Date
$ed=date_create('10-Feb-2017 10:17:00');
$EndDate=date_format($ed,"d-m-Y H:i:s");

if($CurrentDate&lt;=$EndDate)
{
	echo "Please wait";
}
else if($CurrentDate&gt;=$EndDate)
{
	echo "SIte Live !!!";
}

?&gt;


&lt;br/&gt;

Current Date : &lt;?php echo $CurrentDate; ?&gt;&lt;br/&gt;

End Date : &lt;?php echo $EndDate; ?&gt;</pre><p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/compare-date-time-in-php/">Compare Date time in PHP</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/compare-date-time-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Google reCAPTCHA in php</title>
		<link>https://www.codypaste.com/google-recaptcha-in-php/</link>
					<comments>https://www.codypaste.com/google-recaptcha-in-php/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 23 May 2016 07:31:04 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=441</guid>

					<description><![CDATA[<p>&#160; Protect your website from spam and abuse while letting real people pass through with ease. The new reCAPTCHA is here. A significant number of your users can now attest they are human without having to solve a CAPTCHA. Instead with just a single click they’ll confirm they are not a robot. We’re calling it &#8230; </p>
<p class="link-more"><a href="https://www.codypaste.com/google-recaptcha-in-php/" class="more-link">read more<span class="screen-reader-text"> "Google reCAPTCHA in php"</span></a></p>
<p>The post <a href="https://www.codypaste.com/google-recaptcha-in-php/">Google reCAPTCHA in php</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Protect your website from spam and abuse while letting real people pass through with ease.</p>
<p>The new reCAPTCHA is here. A significant number of your users can now attest they are human without having to solve a CAPTCHA. Instead with just a single click they’ll confirm they are not a robot. We’re calling it the No CAPTCHA reCAPTCHA experience.</p>
<p>How to Install/use reCAPTCHA in website? here i will explain step by step instruction:</p>
<p><strong>STEP 1:</strong><br />
Go to : https://www.google.com/recaptcha/intro/index.html and click on &#8216;Get reCAPTACHA&#8217; . and fill the form and complete it.</p>
<p>&nbsp;</p>
<p><strong>STEP 2:</strong><br />
Now you can see one reCAPTCHA added on you list. just click on it.</p>
<p><a href="http://www.codypaste.com/wp-content/uploads/2016/05/recaptcha.jpg"><img fetchpriority="high" decoding="async" class="alignnone wp-image-442" src="http://www.codypaste.com/wp-content/uploads/2016/05/recaptcha-300x145.jpg" alt="recaptcha" width="542" height="262" /></a></p>
<p>&nbsp;</p>
<p><strong>STEP 3:</strong><br />
here is you all secret and detail.</p>
<p>&nbsp;</p>
<p><strong>STEP4:</strong><br />
Now use in form: <strong>HTML Form</strong></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;




&lt;form role="form" id="form1" name="form1" method="post" action="thankyou"&gt;
					    	&lt;div style="margin-bottom:10px;"&gt;
						    	&lt;label style="font-weight:normal;"&gt;Name:&lt;/label&gt;
						    	&lt;input name="name" type="text" style="width:100%;" class="form-control" required placeholder="Your Full Name" id="name"&gt;
						    &lt;/div&gt;
						    &lt;div style="margin-bottom:10px;"&gt;
						    	&lt;label style="font-weight:normal;"&gt;Email:&lt;/label&gt;
                                &lt;input type="email" name="email" required placeholder="Enter a valid email address" class="form-control" style="width:100%;"&gt;
						    	
						    &lt;/div&gt;
						    &lt;div style="margin-bottom:10px;"&gt;
						     	&lt;label style="font-weight:normal;"&gt;Phone Number:&lt;/label&gt;
						    	&lt;input name="phone" type="text" class="form-control" style="width:100%;" required placeholder="Your Contact Number" id="phone"&gt;
						    &lt;/div&gt;
						    &lt;div style="margin-bottom:10px;"&gt;
						    	&lt;label style="font-weight:normal;"&gt;Message:&lt;/label&gt;
						    	&lt;textarea name="msg" class="form-control" required style="width:100%; height:200px;" id="msg"&gt; &lt;/textarea&gt;
						    &lt;/div&gt;
						   
                           &lt;div style="text-align:left;"&gt;
                           &lt;div class="g-recaptcha" data-sitekey="YOUR-SITE-KEY"&gt;&lt;/div&gt;
                           &lt;/div&gt;
                           
                           &lt;div&gt;
                             &lt;input name="act" type="hidden" id="act" value="send" /&gt;
                             &lt;input type="submit" name="button" id="button" value="SUBMIT" class="btn btn-success" style="font-size:16px;" /&gt;
                           &lt;/div&gt;
					    &lt;/form&gt;</pre><p>&nbsp;</p>
<p><strong>STEP5:</strong><br />
Submit.php  /  Form Processing in PHP</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
if(isset($_POST['email']) &amp;&amp; !empty($_POST['email'])) {


if(isset($_POST['g-recaptcha-response']) &amp;&amp; !empty($_POST['g-recaptcha-response']))
{
        //your site secret key
$secret = 'YOUR-SECRET-KEY';
//get verify response data
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&amp;response='.$_POST['g-recaptcha-response']);
$responseData = json_decode($verifyResponse);
if($responseData-&gt;success){
	
//contact form submission code
$name=$_POST['name'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$msg=$_POST['msg'];



$date=date('d-m-Y H:i:s');
$readed="no";
$read_date="no";


$email_to = "info@xyz.com";
$email_subject = "Email From Melea Website";
$message = "\n\nName: ".$name.
"\n\nEmail: ".$email.
"\n\nPhone: ".$phone.
"\n\nMessage: ".$msg."\n\n";		 

// create email headers
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-Mailer: PHP". phpversion() ."\r\n";

// More headers
$headers .= "Reply-To:info@xyz.com\r\n";
$headers .= "Return-Path:info@xyz.com\r\n"; 
$headers .= 'From:info@xyz.com' . "\r\n";

$mail_sent=@mail($email_to, $email_subject, $message, $headers);

// insert in to DB	
$name2=htmlspecialchars($_POST['name'],ENT_QUOTES);
$email2=htmlspecialchars($_POST['email'],ENT_QUOTES);
$phone2=htmlspecialchars($_POST['phone'],ENT_QUOTES);
$msg2=htmlspecialchars($_POST['msg'],ENT_QUOTES);	
  
$insert=mysql_query("INSERT INTO contact(name,email,phone,msg,date,readed,read_date) VALUES ('$name2','$email2','$phone2','$msg2','$date2','$readed2','$read_date2')");		  
            
echo"&lt;div class='alert alert-success'&gt;Thank You! We will get back to you as soon as possible!&lt;/div&gt;";
			
}
else 
{
$errMsg = "&lt;div class='alert alert-danger'&gt;Robot verification failed, please try again.&lt;/div&gt;";
}

}
else
{
$errMsg = "&lt;div class='alert alert-danger'&gt;Please click on the reCAPTCHA box.&lt;/div&gt;";
}


echo"$errMsg";


}
?&gt;</pre><p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/google-recaptcha-in-php/">Google reCAPTCHA in php</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/google-recaptcha-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
