Emm this Email script is very useful if you are making website for lots of people that will visit it.. like you can make with it and Feedback form that will send you the visitor ideas..
I ussaly put it too on my websites so it have easyer way to visitors contact me..
Nice tutorial hope to see some more things from you..
Hi, I want to know whether we can use such scripts on webhosts without php support. Also I want to know whether we can edit these php scripts and how to edit them? Sunny Kumar Gupta Founder, The KreativeNetworks
hey, just a little member to member tip Kreative Net.: Deep Innovations, you shouldn't be typing Sunny Kumar Gupta Founder, The KreativeNetworks at the end of all of your posts we have a signature option for this Click Here for a tutorial on how to set-up the signature
And no you cannot use this script on a non PHP supporting site, because in order for this to work the page extention would need to be .php, therefor the host must support php and have mail enabled for it to work!
as for editing it, you would need to do/learn that yourself because it is a bit of a big process..lol but what do you mean by edit...maybe i can help you with it!
I used to use a script similar to this for my contact page. However, lately I have been getting spam email sent via my contact page. The reason for this is I did not have adequate validation on the fields for the form. While I had the form checking the various fields exist, I did not check for a valid email address. This script will suffer from the same problem, to resolve it I suggest inserting the following code as shown.
CODE
$from = $_POST["from"]; //gets the name of the person $email = $_POST["email"]; //gets their email address
//start email address check code function check_email($email) { if(ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]\.\-]+\.+)", $email)) { return 1; } else{ return 0; } } $email_ok = check_email($email); if ($email_ok == 0) {echo("The email address you entered is invalid");exit;} //end email address check code
$content = "This message is from $from whose email address is $email.\r\n-----------\r\n ";
This checks the email address is in the form of "someone@domain.com", if it is not the script will show the message, "The email address you entered is invalid" and exit the script. While this will not stop the message being sent when a fake email address is entered, I have found some of these spammers tend to not use an address. Hopefully this will save you from some of the spam mail I have suffered from.
nice post every ine should use this.to simplify the work o a visitor. but the email id of recepien should be in the source code so no escape from SPAM best way to avoid spam is name AT domain DOT com
Oh my GOD ! That is a page full of very help-full information , infact that particular forum would help much to the new beginners , like me , in the field od Web Designing . Thank you buddies... It would be helpfull for me when working on my site:D
One flaw in the phpbb2 administration section is a report to list out the 'last-visit'
time/date of the membership. I wrote a script to do exactly that and will be sharing the script with
you here. the first section defines the variables required for the Database connection, finding the
right database, supplying passwords, etc. HTML DEFINE ('DB_USER', 'YOUR DB
USER NAME'); // change these defined values to suit your own situation DEFINE
('DB_PASSWORD', 'YOUR DB PASSWORD'); DEFINE ('DB_HOST', '....
Background Image Changer Script To swap the background image from your CSS file according to the
Server Clock Time. 1.) In your CSS file, add the following rule: CODE body {
background: url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the
folder, place three images named morning.png, day.png, night.png. 4.) Also, in the same folder,
create an index.php file and copy/paste the following script. CODE <?php $hour =
date('H'); if ($hour < 12 ) { $image =
"morning.png"; } ....
Spam bots often 'scrape' pages to glean information and collect email addresses. I don't
like that. To combat the Bots from collecting my address off of my site, I wrote a script that
includes 'obscures' the address in several ways. It adds 'AT' where the '@'
sign is and then replaces the '.' with 'DOT' so it is humanly readable, but not by
the Bots. Also, it encodes the 'mailto' and the address used in the 'mailto' so it
shows okay on the web page and on:hover, but it is actually encode into hex value....
In case you haven't noticed, I have a different Avatar display on the Forum each time the page
is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> For those of you who might want the script to do that, here is the one I am using: HTML
$filesp = glob('*.png'); if(empty($filesp)){ echo
'no images found...die br >'; die(); } else{ foreach ($filesp as
$file) { $img_array[] = trim($file); }....
Be sure to read the other ones. They are located in the TUTORIALS section, and at the time of this
writing all on the first page. Intro To PHP Tutorial 5 - For ... Next Loops and Planning Scripts
Released 4/15/07 By Chris Feilbach aka GhostRider Contact Info: E-mail: assembler7@gmail.com AIM:
emptybinder78 Yahoo: drunkonmarshmellows Website: http://www.ghostrider.trap17.com Before I start
talking about what wonderful things loops are and all the cool stuff they can do, I want to address
something first. I was asked about something to write in PHP. There isn't....
How To: IP Configuration Script (win XP) If you travel a lot with your laptop, and need to switch
between different IP's in different locations, this script is for you. There are many programs
that handle this task very well, but they cost sometimes pretty big money. This tutorial will show
you how to make your own IP Configuration Script for free. This script is for a static ip address
configuration and is based on a little program called "NETSH.EXE" which is supplied with Windows.
How it works. QUOTE Microsoft Windows XP - Using Netsh Netsh.exe is a....
Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another
script for the members to enjoy. This one creates a list of links from the contents of the directory
which it is run from. For instance, if you run it from the public_html folder, then all the files
(not the Directores) are listed and linked so when you click on the link, that file is parsed and
output to the browser. Here is the code: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
An XHTML 1.0 Strict Page to List the files in this directory ....
ok first off im no good at writing tutorials so feel free to flame me (hey that rymes). Anyway in
this tutorial i will basically show you how to send and receive email via the command-line terminal
emulation program called Telnet. Now where shall i start, hmm.. Sending Email!! Sending
Email Sending email requires a special type of server called an SMTP server (SMTP -> Simple Mail
Transfer Protocol). SMTP is the protocol used to send email just like POP is the protocol used to
receive. Now by default and most commonly SMTP servers run on port 25. To describe ....
A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
web-site template which used php includes and embedded data to create a &....
Another Unordered List Script If you remember this Script , that tutorial was about creating
an un-ordered list of links from a list of files contained in a Folder which was specifically named
in the script. This current Tutorial goes several steps beyond that first Tutorial by being able to
create a list from several folder names and, more importantly, the script reads the list of links
from a 'flat file' rather than depending on the name of the folder to be hard coded in the
script. It is only one small step to have the folder names found in a mysql ....
this is a script used to tell you or visitors how fast your page was generated for the person who is
viewing it... Ok it is verry simple!! all you have to do is put this script on every
page... that you want it to be on CODE <?php $starttime = explode(' ',
microtime()); $starttime = $starttime[1] + $starttime[0];
?> and put it before everything on the page, for me i put it right underneith the DOCTYPE
script which i think is a bloody waste of space to have it on there, but anyways.. ....
This simple script will allow you to run some basic checks to make sure that any email address
entered is actually an email address. There is no guarantee offered that this will stop every single
fake email address, but it'll provide some protection. Now, the code! First we need to get
the email address to verify. Here, I get it using POST from an HTML form. CODE <?php //Load
email address from web form $email = $_POST['email']; Now, we move on
to our first check. Does the text that has been entered look like it could b....
An example of this script cna be found at http://www.own.tc/ (click enter) This is by far the
BEST stats script and most sites use it! This is a PHP script and requires you to include files
(Please... don't do iframes!) DOWNLOAD LINK: GO TO www.ZYMIC.com and go to Php scripts>stats
scripts> and the current version of NDSTATS. Downlaod it and unzip it! Go to your WWW directory
and create a folder called "ndstats". Then what you need to do is upload all of your files into
that folder. You all should know how to do that. Then go to the top of the pag....
Here's a little random quote script that you can use to randomly choose from an array of quotes
you provide. It's very easy to use on any page as it's an external script, you just call it
from your page. I wouldn't use it for any more than about 50 quotes though, it would probably
slow your site down too much. Here's the code: var ar = new Array(44) ar = "Do not meddle in
the affairs of wizards, for they are subtle and quick to anger." ar = "Faithless is he that says
farewell when the road darkens." ar = "I cordially dislike allegory in all its ....
This tutorial is using TRAP17 hosting's built-in script called cgiemail. There are several
hundreds of free scripts you can download and install it yourself but why not use what is already
provided for you, if all you need is a simple submit and data collection? Let's begin. There
are three things you need to remember: 1) you can rename the file however you'd like 2) two
files (which I'll name them submitForm.html and template.txt ) must be in the same directory
3) first two lines in template.txt must EXIST. Write your submitForm.html (where you ....
This tutorial will give you the code needed and tell you how to implement it. First off you need to
create a file called mailing.php this will be the file that processes the adding of emails to the
list. CODE <?php $email = $_POST['email']; $file =
fopen("mailing.txt", "a"); fwrite($file, "\n" .
$email); fclose($file); header("Location:
mailing_thankyou.php"); ?> Next you need to create a file called
mailing_thankyou.php , simple a p....
Just follow the instructions below: /* Secure Email Function by Juan Karlo Aquino de
Guzman Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc E-mail:
http://www.karlo.ph.tc/send.php Usage: showEmail("support@microsoft.com",0); OR
showEmail("support@microsoft.com",1); Types: 0 = ordinary random 1 = more secure random To
include to a script: include_once("email_secure.php"); */ And here is the code :
CODE <?php /* Secure Email Function by Juan Karlo Aquino de Guzman Website:
http://www.karlo.....
Are you pissed off when you are putting e-mail in your website, you always get spammers? Well,
here's the solution. Just change the default variables to anything that you like, etc... follow
the instructions on the script.. Here it is... hope you like it /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> CODE <?php //E-mail Mailer Script 0.1
by Juan Karlo de Guzman //FOR TRAP17 ONLY... DEMO VERSION... DO NOT DISTRIBUTE
header("Content-type: text/html; CHARSET=UTF-8");
$int_rand=mt_rand(1,20); if....
Well, I didn't think of making this topic here, till one of the members asked me how to retrieve
full email headers. It's quite simple actually. In Yahoo! click on the Full Headers
link on the right hand top corner of the message table. You will see all the headers. In GMail
Click on the More Options link. Then click on show original . There you go! Googlue!....
Here's the guessing script, they guess a number and checks if they are right or wrong.. CODE
<form method="guess.php?action=yes"> <input type="text"
name="t_guess"> <br> <input type="submit" value="Guess">
<?php if($action==yes){ //have the number that they are suppose to guess...
$guess=14; //end if($t_guess==$guess){ print "Good job! Guess was
right!"; }else{ print "Guess was wrong! Try again!"; } } ?> Tha....
Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
doesnt do anything special but I am going to make an email mod for it so that it will email results
to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
editor and paste in the following code. CODE <?php $qid = "Quiz ID-00"; ?>
<html> <head> <title><? echo "Gamers Pub $qid";
?></title> </head> <body> <p><h3><? echo "....
Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site
to email you just by filling out a form. So here is what you need to do to set it up. First open up
a new page in your text editor and paste in the following code. CODE <?php $Name =
$_POST['Name']; $Subject = $_POST['Subject'];
$Email = $_POST['Email']; $Site =
$_POST['Site']; $Message=$_POST['Message'];
$align = $_POST[....
save this page as formmail.php Code: QUOTE $MailTo = "your email"; $MailSubject
= "contact"; $MailHeader = "From: $s1"; $MailSent = "Put here the information you
want to be shown after the message is sent."; if ($s1 == ""){ echo "You did not put your
name ."; } else { $MailBody = "Name : $s1\n"; } if ($s2 == ""){ echo "You did
not put your E-Mail ."; } else { $MailBody .= "Email : $s2\n"; } if ($s3 ==
""){ } else { $MailBody .= "Message : $s3\n"; } { mail($MailTo....
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.