Newsflash

The 1 Euro Project is an attempt to help people who are not convinced of the benefits of having a website. With a minimum of cost, time and energy Graphwire can help your business go online and meet millions of customers, fans, friends. From there the sky’s the limit. We have a large amount of professional layouts for you to choose from, all you need to do is subscribe for one. And all this for just 1 Eur!

FacebookTwitter


 

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.');
}


 


Advertising

Banner