Re: call anchor from php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ross Hulford wrote:
> Is it possible to call a named anchor from within a php script?? I need my
> page to go to the point in the page where the form is and bypass all the
> rubbish.

If you are giving the user a link to that page, you can simply give them
the named anchor in the link:
echo "<a href=\"http://example.com/index.htm#goodstuff\";>here</a>";

If you want to use PHP to read that page, and get only the HTML starting
at the anchor, you want http://php.net/strpos or http://php.net/explode to
tear apart the HTML at the anchor point.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux