You are here: DEVPPL Forum Programming ASP & ASP.NET Forum
NOTIFICATIONS
54.329
MEMBERS
15.720
TOPICS
62.407
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Update URL address of link on webpage

0

Loading

Update URL address of link on webpage

Postby JaBrim » Sat Jan 13, 2007 9: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
 
Reputation: 0
Posts: 2
Joined: Sat Jan 13, 2007 8:17 pm
Highscores: 0
Arcade winning challenges: 0

Update URL address of link on webpage - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Postby Rasmus Lindström » Mon Jan 15, 2007 10:50 pm

Hi and welcome to DEVPPL.

Does your server support ASP or PHP ?
[url=http://www.linkedin.com/profile/view?id=96243938]Meet me on LinkedIn[/url]
[img]http://www.devppl.com/images/facebook_icon_small.jpg[/img] Help DEVPPL grow, [url=http://www.facebook.com/pages/DEVPPL/140524279390050]like DEVPPL on facebook[/url]!
Rasmus Lindström
Site Admin
 
Reputation: 18
Posts: 2834
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden
Highscores: 1
Arcade winning challenges: 0
0

Loading

Re: Update URL address of link on webpage

Postby JaBrim » Tue Jan 16, 2007 12:47 am

Hi webmaster,

My server supports ASP.

:D


Thanks

Jabrim
JaBrim
 
Reputation: 0
Posts: 2
Joined: Sat Jan 13, 2007 8:17 pm
Highscores: 0
Arcade winning challenges: 0
0

Loading

Postby Rasmus Lindström » Tue Jan 16, 2007 8: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.
[url=http://www.linkedin.com/profile/view?id=96243938]Meet me on LinkedIn[/url]
[img]http://www.devppl.com/images/facebook_icon_small.jpg[/img] Help DEVPPL grow, [url=http://www.facebook.com/pages/DEVPPL/140524279390050]like DEVPPL on facebook[/url]!
Rasmus Lindström
Site Admin
 
Reputation: 18
Posts: 2834
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden
Highscores: 1
Arcade winning challenges: 0
^ Back to Top