Re: [phplib] link-problem From: Dima Nemchenko (Dima.Nemchenko <email protected>)
Date: 07/15/01

Ralf Pfeiffer wrote:

> Hello,
>
> I want to make a simple link from Page http://www.queryobjekte.php3 to a
> certain place on page
> http://www.bauernhoefe.immobilien-hohenlohe.de/Seite2.html with
> http://www.bauernhoefe.immobilien-hohenlohe.de/Seite2.html#141-ba-le.
>
> On page '....Seite2.html' I defined: <a name="141-ba-le"></a>.
>
> I suppose, this is because of the signs '-' in the string 141-ba-le - Am I
> right?
>
> If so, somebody has a solution? For example to take away this sign, so to
> get 141bale. Has anybody an php-order for this, if so?
>
> Anybody has an Idea?
>
> Greetings
> Ralf
>
> --
> Abbestellen mit Mail an: phplib-unsubscribe <email protected>
> Kommandoliste mit Mail an: phplib-help <email protected>

Hi Ralf,

Not sure what you meant, but here goes... :)

Why not use single-quotes (') instead of double-quotes (") to surround the
string? That way, PHP won't process it, and the "-" won't be a problem.

Hope this helps,

--

:D_ima Dima Nemchenko <Dima.Nemchenko <email protected>>

"Open source code is like lobster--most people who haven't tried it don't like the way it looks. But those who try it, love it."

-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>