Hi!
1) I have this birthdayscript on a website. The website is for families with children adopted from Colombia. We want to congratulate all the children on the website on their birthdays. Is it possible to make a form that writes the correct if line to a document (birthdays.txt) so I can just cut and paste the new lines into the script? The cut and paste is ment as a security so we ceep it clean (no dirty words)
2) When I got this script the name of the writer was taken out. Does anyone know who it might be. I would like to give him/her credit for the work.
<html>
<head>
<title>Birthdays</title>
</head>
<body>
<p align=”center”><font size=4 color=#000080>Today we celebrate…</font></p>
<SCRIPT>
today = new Date();
month = today.getMonth()+1;
day = today.getDate();
year = today.getFullYear();
var used = 0;
if(( month == 01 ) && ( day == 30 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname1 Lastname1 “+(year-1997)+” years! <a href=mailto:
if(( month == 02 ) && ( day == 28 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname2 Lastname2 “+(year-1986)+” years! <a href=mailto:
if(( month == 03 ) && ( day == 15 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname3 Lastname3 “+(year-1999)+” years! <a href=mailto:
if(( month == 04 ) && ( day == 30 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname4 Lastname4 “+(year-2001)+” years! <a href=mailto:
if(( month == 05 ) && ( day == 30 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname5 Lastname5 “+(year-2001)+” years! <a href=mailto:
if(( month == 06 ) && ( day == 30 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname6 Lastname6 “+(year-2000)+” years! <a href=mailto:
if(( month == 08 ) && ( day == 29 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname7 Lastname7 “+(year-1989)+” years! <a href=mailto:
if(( month == 09 ) && ( day == 27 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname8 Lastname8 “+(year-1996)+” years! <a href=mailto:
if(( month == 10 ) && ( day == 29 )){ document.write( “<center><p><font size=4 color=#FF0000>Firstname9 Lastname9 “+(year-1979)+” years! <a href=mailto:
if( used == 0 ){ document.write( “<center><p><font size=4 color=#000080>…no one.</font><br><font size=2 color=#000080>(As we know)</font></p></center>” );}
if( used == 1 ){ document.write( “<center><p><font size=4 color=#000080>Congratulation!!</font></p></center>” );}
</SCRIPT>
</body>
</html>
Bacchus