Re: index page query from PHP newbie



"Tony" <someone@xxxxxxxxxxxxx> wrote in
news:119nnludt6ke73c@xxxxxxxxxxxxxxxxxx:

> "KiwiBrian" <briantoz@xxxxxxxxxx> wrote in message
> news:d7fi1q$f1v$1@xxxxxxxxxxxxxxxxxx

>> Thanks folks for the replies so far.
>> I was hoping that my Home Page link could go to a special page
>> which had a .php extension and contained the appropriate snippet of
>> php and was automatically actioned.
>> Is this another option?
>> I use this method at present to funnel all outgoing links to a site
>> that I want to monitor the number of visits to from my site using
>> Statcounter. If this method is an option, what would I need in my
>> intermediate page in place of the a href link, which in testing I
>> have triggered manually. I hope I am being clear.
>> TIA
>> Brian Tozer
>
> If you're set on keeping the HTML extension, all I could suggest is
> using JavaScript instead of PHP.

Or set index.html as simply a redirect to index.php?

You'd get better help if you would explain what you are trying to
accomplish. Is there some specific reason for not changing index.html
to index.php? A lot of links hard coded to index.html for instance?
If that is the reason, a redirect should work.

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.

.



Relevant Pages

  • Re: Post with redirect?
    ... you made it about javascript, ... He wanted a way to redirect a port with data to an external site and I gave it to him. ... And you still haven't showed us how to do a redirect with post values in PHP. ... the only thing jerry got right is that it would be a lot of work. ...
    (comp.lang.php)
  • Re: Post with redirect?
    ... redirection...and how to do a post from php (which you said was ... Oh, so you aren't even as good as a script kiddie, huh? ... I said it was impossible to redirect from PHP. ... Now who's backpeddling, troll? ...
    (comp.lang.php)
  • Re: Post with redirect?
    ... He wanted a way to redirect a port with data to an external site ... posting certain inputs, with the 3rd party server as the target. ... i made no claim other than you can use just php to get the job done. ... only thing jerry got right is that it would be a lot of work. ...
    (comp.lang.php)
  • Re: Post with redirect?
    ... I am using an online merchant provider and I must post certain ... How can I force a POST but actually redirect the user as well like ... and it can't be done with PHP. ... that's just another helpful 'golden nugget' from jerry stuckle. ...
    (comp.lang.php)
  • Re: Post with redirect?
    ... How can I force a POST but actually redirect the user as well ... and it can't be done with PHP. ... thing jerry got right is that it would be a lot of work. ... Hi Steve, ...
    (comp.lang.php)