| You are here: DEVPPL ‹ Forum ‹ Programming ‹ ASP & ASP.NET Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
Update URL address of link on webpage
4 posts
• Page 1 of 1
0
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
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
0
Hi and welcome to DEVPPL.
Does your server support ASP or PHP ?
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]!
[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: 2829
- Joined: Tue Aug 17, 2004 2:07 pm
- Location: Sweden
- Highscores: 1
- Arcade winning challenges: 0
- JaBrim
- Reputation: 0
- Posts: 2
- Joined: Sat Jan 13, 2007 8:17 pm
- Highscores: 0
- Arcade winning challenges: 0
0
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.
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]!
[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: 2829
- Joined: Tue Aug 17, 2004 2:07 pm
- Location: Sweden
- Highscores: 1
- Arcade winning challenges: 0
|
|