Results 1 to 2 of 2

Thread: Cgi Script?

  1. #1
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Cgi Script?

    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) . 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?

    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>

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    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?

    Code:
    <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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •