Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Update URL address of link on webpage



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> ASP & ASP.NET Forum
View previous topic :: View next topic  
Author Message
JaBrim



Joined: 13 Jan 2007
Posts: 2

PostPosted: Sat Jan 13, 2007 9:46 pm    Post subject: Update URL address of link on webpage Reply with quote

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
View user's profile Send private message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3647
Location: Sweden

PostPosted: Mon Jan 15, 2007 10:50 pm    Post subject: Re: Update URL address of link on webpage Reply with quote

Hi and welcome to DEVPPL.

Does your server support ASP or PHP ?
Back to top
View user's profile Send private message Visit poster's website
JaBrim



Joined: 13 Jan 2007
Posts: 2

PostPosted: Tue Jan 16, 2007 12:47 am    Post subject: Re: Update URL address of link on webpage Reply with quote

Hi webmaster,

My server supports ASP.

Very Happy


Thanks

Jabrim
Back to top
View user's profile Send private message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3647
Location: Sweden

PostPosted: Tue Jan 16, 2007 8:53 am    Post subject: Re: Update URL address of link on webpage Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> ASP & ASP.NET Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap