[thelist] PHP and anchors

Jason Lustig lustig at acsu.buffalo.edu
Sat Jan 13 13:08:31 CST 2001


Yeah, I tried that. But the "#anchor" in the URL messed with my querystring.
That's the problem.

--Jason

http://www.alternate-universe.org/

*****

Your signiture determines your reality



>-----Original Message-----
>From: thelist-admin at lists.evolt.org
>[mailto:thelist-admin at lists.evolt.org]On Behalf Of Hendrik Mans
>Sent: Saturday, January 13, 2001 12:29 PM
>To: thelist at lists.evolt.org
>Subject: RE: [thelist] PHP and anchors
>
>
>Jason,
>
>> I have seen this done, but am not sure how to. I want to set up,
>in a .php
>> file, anchor names so that I can link to the different parts of the page
>> directly in the HTML - however, it messes with the querystring.
>Is there a
>> way that this can be done? I have seen it in ASP (thought I dont
>know how,
>> and if I did, it probably wouldn't help much). For example:
>
>Since anchors are standard HTML, all you need to do is print them using the
>echo() or print() functions, or just by escaping from the PHP script.
>
>  print("<a name=\"foo\"></a>");
>  echo("<a name=\"foo\"></a>");
>  ... ?><a name="foo"</a><?php ...
>
>Take care,
>Hendrik
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !
>
>





More information about the thelist mailing list