Uri Guttman wrote:
>>>>>> "TB" == Thomas Bätzler <t.baetz...@bringe.com> writes:
> 
>   TB> That'll raise the next problem, though: _ is a valid character for
>   TB> a variable name, so the Perl interpreter will try to access the
>   TB> variable $Vorname_ which probably isn't what you wanted. In such a
>   TB> case, use curly braces to delimit the variable name, like this:
> 
>   TB> print STATISTIKDATA 
> CGI->a({href=>"http://www.b-net-c.de/adressbuch/${Vorname}_${Name}_$id.html'},'Link
>  zum Profil');
> 
> you closed the string with ' instead of ". also this code cries out for
> formatting as you can't see the keys vs values vs code.
> 
>       print STATISTIKDATA CGI->a( {
>               href =>
>               "http://www.b-net-c.de/adressbuch/${Vorname}_${Name}_$id.html";
>               },
>               'Link zum Profil'
>       );

CGI->a({href="http://www.example.com/../${Vorname}..${id}.html"},'Link
zum Profil');

you have to write to get an URL like this one:
http://www.example.com/../Max_Mustermann_4711.html

Such an URL is seo-optimized and that a mod_rewrite-rule produce in the
.htaccess-file.

Regards,
Ruprecht


-----------------------------------------------
Ruprecht Helms IT-Service & Softwareentwicklung
       allow your worktools be individual

Web: http://www.rheyn.de

Tel.: +49 7621 169916
Fax: +49 7621 422170

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to