Re: call anchor from php

From: Date: Tue, 08 Mar 2005 16:50:53 +0000
Subject: Re: call anchor from php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210232@lists.php.net to get a copy of this message
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

« previous php.general (#210232) next »