Log in

View Full Version : Cgi Script?



Princess A2J
09-15-2006, 04:14 AM
I have a script form a website called netmind.com (I guess they're defunct now, link sent me to a diff site w/ no free stuff on it) :mad: . baiscly it allowed vistiors to enter their e-mail in a box & it would let them know whn the site was updated

is there anything else out there like that? :confused:

here's the script " <FORM METHOD="GET" ACTION="http://www.netmind.com/cgi-bin/uncgi/url-mind" input type=hidden name=note value="Thanks for registering A2J's Corner of Cyberspace. Have a Blessed Day!">
Want to know when I update my corner?<BR> just put U're e-mail address in the box below!.<BR>
Your e/m addy:<BR>
<INPUT TYPE=TEXT SIZE=30 NAME="required-email"><BR>
<INPUT TYPE=HIDDEN VALUE="http://addicted2jesus.faithweb.com" NAME="url">
<INPUT TYPE=SUBMIT VALUE=" Press Here to Register ">
</FORM><CENTER> <P><P>

codeexploiter
09-21-2006, 09:59 AM
are you talking about a script that display the page's last modified date that works based on server-side technology? like PHP or ASP.

Or

are you looking for a client side script that will do the same thing without getting email address from the user.

I wonder what would be the reason for the user who will register just to know when your site updated? :confused:



<script language="JavaScript">

function date_find(date)
{
var d = date.getDate();
var m = date.getMonth() + 1;
var y = date.getYear();

var mmm =
( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
(10==m)?'Oct':(11==m)?'Nov':'Dec';

return "" +
(d<10?"0"+d:d) + "-" +
mmm + "-" +
(y<10?"0"+y:y);
}

function date_lastmodified()
{
var lmd = document.lastModified;
var s = "Unknown";
var d1;

// check if we have a valid date
// before proceeding
if(0 != (d1=Date.parse(lmd)))
{
s = "" + date_find(new Date(d1));
}

return s;
}

document.write("This page was updated on " + date_lastmodified() );

// -->
</script>


This script will do the job on the client-side