It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming ASP & ASP.NET Forum

Update URL address of link on webpage

Update URL address of link on webpage

Postby JaBrim on Sat Jan 13, 2007 8:46 pm

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
JaBrim
 
Posts: 2
Joined: Sat Jan 13, 2007 7:17 pm

Postby webmaster on Mon Jan 15, 2007 9:50 pm

Hi and welcome to DEVPPL.

Does your server support ASP or PHP ?
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Re: Update URL address of link on webpage

Postby JaBrim on Mon Jan 15, 2007 11:47 pm

Hi webmaster,

My server supports ASP.

:D


Thanks

Jabrim
JaBrim
 
Posts: 2
Joined: Sat Jan 13, 2007 7:17 pm

Postby webmaster on Tue Jan 16, 2007 7:53 am

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.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden


Who is online

Users browsing this forum: No registered users and 0 guests

cron