• Home
  • Corporate ID
  • Print Design
  • Web Design Folio
  • Solutions
  • Extra Features
  • Contact
Solutii webHide

FacebookTwitter

Tweet

Some free scripts we have found browsing and we use:



PHP redirect PDF Print E-mail

A short and useful redirect script:


 

Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.newlocation.com" );
?>



 
Email script PDF Print E-mail

First the php part:

My provider blocked the "from" header to receive mails from external websites so i arranged it a bit to send the mail from my domain and i read the customer email with the "name" tag

 


<?php
if(isset($_POST['email'])) {

// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = " This e-mail address is being protected from spambots. You need JavaScript enabled to view it ";
$email_subject = "your_desired_subject";


function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form your submitted. ";

echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}

// validation expected data exists
if(!isset($_POST['name']) ||

!isset($_POST['email']) ||

!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form your submitted.');
}


Read more...
 


Solutii web
Solutii webHide