Php code for D.O.B selection
We visit a several website there we need to enter own date of birth code when we try to write own code in html it will be very large because the 31 day then 12 month and no one know how many year,Here
i m write a only 21 line code for all those thing you can chose
a year between 1900-2009 and easily modified also ..
Copy and paste this code where u want..
Wednesday, November 4, 2009
Php code for web counter
Php code for web counter
We visit a several website there we see you are the visitor number
something like so you people are querius about this how this one is work then follow this given instruction and create your own free web counter
Copy and paste this code where u want..
We visit a several website there we see you are the visitor number
something like so you people are querius about this how this one is work then follow this given instruction and create your own free web counter
Copy and paste this code where u want..
Monday, November 2, 2009
Sunday, November 1, 2009
Google search highlighter
When visior reach your web site via google search ,then search term will be highlighted on your page ...
Copy and paste this code where u want..
Copy and paste this code where u want..
Use of header ( ) in php
header() play a very important role in Php .header is use to send a
row HTTp header .
Note :- header() Must be called before any actual output is sent
Header string
With the help of header string we can redirect to a different page in directory that was requested
row HTTp header .
Note :- header() Must be called before any actual output is sent
Header string
With the help of header string we can redirect to a different page in directory that was requested
Friday, October 30, 2009
Thursday, October 29, 2009
Email validation script in Php
There is simple code to validate email in php
Php code //
If(trim($_REQUEST("email"])=="")
$Em="Email id cannot be empty";
$errFlag="true";
}
else
{
if(!ereg("^(.+)@(.+)\\.(.+)$",trim($_Post("email"])))
{
$Em="Invalid Email Id";
$errFlag="true";
}
}
Html code //
Email " size="40" maxlength="40">
Php code //
If(trim($_REQUEST("email"])=="")
$Em="Email id cannot be empty";
$errFlag="true";
}
else
{
if(!ereg("^(.+)@(.+)\\.(.+)$",trim($_Post("email"])))
{
$Em="Invalid Email Id";
$errFlag="true";
}
}
Html code //
Email " size="40" maxlength="40">
Automatic Download script in Php
Some website has functionality .... when we open the web site automatic some file downloading will start
here i m write simple Php script to start automatic download when page is loaded .......
header ('Content-type:application/doc');
// Doc is your document type u can change it
header ('Content-Disposition:attachement;filename="xyz.doc")
// xyz..doc is your document ready to download
exit();
?>
Tuesday, October 27, 2009
Monday, October 26, 2009
Subscribe to:
Posts (Atom)