Reply to Re: Basic query

Your name:

Reply:


Posted by Nik Coughin on 11/22/19 11:17

Nik Coughin wrote:
> KiwiBrian wrote:
>> "Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
>> news:0kPme.4171$U4.581908@news.xtra.co.nz...
>>> KiwiBrian wrote:
>>>> How can I add code to page 2 so that if it is called/displayed from
>>>> a link from another page (page 1) then the hyperlink on page 2 will
>>>> be actioned automatically, just as if it's link to page 3 had been
>>>> manually selected?
>>>
>>> try something like this:
>>> http://nrkn.com/kiwiBrian/
>>
>> Hi Nik. Right around the world and back to NZ.........lol
>> Thanks for the example.
>> I wish to have a "Today's Results" button on my Home Page.
>> The PHP that I want to implement on page 2 is:-
>>
>> <a href="<?php echo date('l') ?>.html"</a>
>>
>
> Try <?php header('Location: '.date('l').'.html') ?>
>
> Just that in the page2.php file, nothing else.
>
> H2H

That's method 1. You can see it at the url above.
http://nrkn.com/kiwiBrian/ and download the files at
http://nrkn.com/kiwiBrian/kiwiBrian.zip

A more concise way to do it would be <?php include(date('l').'.html') ?>

You can see it at http://nrkn.com/kiwiBrian/2/ and download it at
http://nrkn.com/kiwiBrian/2/kiwiBrian.zip

Cheers

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация