| View previous topic :: View next topic |
| Author |
Message |
JaBrim
Joined: 13 Jan 2007 Posts: 2
|
Posted: Sat Jan 13, 2007 9:46 pm Post subject: Update URL address of link on webpage |
|
|
Hello,
Hoping I am posting this question in the right place. I put the "N" in Newbie ! Part of my Link's address changes daily because it changes with the current date (01/17/07). I would like to create a link where the date part of the link is updated on my HTLM page.
Thanks,
JaBrim |
|
| Back to top |
|
 |
|
|
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3647 Location: Sweden
|
Posted: Mon Jan 15, 2007 10:50 pm Post subject: Re: Update URL address of link on webpage |
|
|
Hi and welcome to DEVPPL.
Does your server support ASP or PHP ? |
|
| Back to top |
|
 |
JaBrim
Joined: 13 Jan 2007 Posts: 2
|
Posted: Tue Jan 16, 2007 12:47 am Post subject: Re: Update URL address of link on webpage |
|
|
Hi webmaster,
My server supports ASP.
Thanks
Jabrim |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3647 Location: Sweden
|
Posted: Tue Jan 16, 2007 8:53 am Post subject: Re: Update URL address of link on webpage |
|
|
Ok, I only do PHP programming, not ASP. But this should be very simple, so make a few google searches and you should find the answer.
I'll explain how you should have done it if you were using PHP, you will then understand the basics, then you just have to do it in ASP.
First of all, get the date for today:
$date = date("d/m/Y");
Print out the link:
echo "<a href=\"http://www.site.com/" . $date . "/hello.html">LINK</a>";
And that's all. It should be simple to make it in ASP too. |
|
| Back to top |
|
 |
|