View Single Post
Old 07-05-2002, 05:20 PM  
TFCash
Confirmed User
 
Industry Role:
Join Date: Apr 2001
Posts: 1,738
If you use javascript and they have it turned off, which seems to be more and more folks these days, then you lose out Do you have php on your server ?? If so then you could easily put this at the top of your page.

put php start tag here
$day = date(D);
put php end tag here


where ever you want the link to appear in your page put this

put php start tag here
insert "$day";
put php end tag here

and then you need to create the files for each day of the week, and put the actual html for the links in there

Mon
Tue
Wed
Thu
Fri
Sat
Sun

** note caps !!!

You can do the same thing by the actual date i.e. 01 02 03 04 05 and so on, and have a diff link for all 31 days if you'd like by changing out the $day = date(D); with $day = date(d);


Then all you have to remember to do is to turn php parsing on for all htm and html files by putting this in your .htaccess

AddType application/x-httpd-php html
AddType application/x-httpd-php htm

email me at webmaster if you have any trouble and I'll try to help you out.


Tim
TFCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote