Blog

Know Something new about PHP.

HOW TO SEND EMAIL IN HTML FORMATTING TO MORE THAN ONE PERSON THROUGH PHP ?

Created by Nausin Patel on Date: 27/06/2018

$headers = "From: name@companyname.co.uk \r\n";
$headers .= "Reply-To: ". strip_tags($email) . "\r\n";
$headers .= "CC: hrcompany@gmail.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//here is the mail function which will send the email
mail($email, $subject, $msg, $headers);

HOW TO SET PAYPAL RETURN URL AND MAKE IT AUTO RETURN?

Created by Nausin Patel on Date: 27/06/2018

PROCESS STEPS :

  • Log in to your PayPal account at https://www.paypal.com. The My Account Overview page appears.
  • Click the Profile subtab. The Profile Summary page appears.
  • Click the My Selling Tools link in the left column.
  • Under the Selling Online section, click the Update link in the row for Website Preferences. The Website Payment Preferences page appears
  • Under Auto Return for Website Payments, click the On radio button to enable Auto Return.
  • In the Return URL field, enter the URL to which you want your payers redirected after they complete their payments.
    NOTE: PayPal checks the Return URL that you enter. If the URL is not properly formatted or cannot be validated, PayPal will not activate Auto Return.
  • Scroll to the bottom of the page, and click the Save button.

HOW TO JUMP TO A DIV OR SECTION AFTER FULL PAGE LOAD USING JQUERY ?

Created by Nausin Patel on Date: 27/06/2018

Add following jQuery code in <script> Section after body section

<script type="text/javascript">
$(window).on('load', function() {
$.ready.then(function(){
$('html, body').animate({
scrollTop: $('#availhotel').offset().top
}, 1000);
});
});
</script>