You are here: Re: String problem « PHP Programming Language « IT news, forums, messages
Re: String problem

Posted by Jerry Stuckle on 03/01/06 04:24

Krustov wrote:
> In this case its the length of it .
>
> $qaz="Drugs Are Good";
>
> $wsx="$qaz" . "&name=checked&from=checked&heard=checked&main=checked";
>
> print "<td><a href=ganja.php?string=$qaz class=abc>$qaz</a></td>";
>
> The following is what appears on the hyperlink mouse over .
>
> ganja.php?string=Drugs
>
> Perhaps not so much of what i'm doing wrong - more of a what do I need
> to do in order to get it working .

Not a PHP problem - but an HTML one. Your href string needs to be
enclosed in double quotes. True of any string - but most browsers will
understand the string if it doesn't include spaces.

print "<td><a href=\"ganja.php?string=$qaz\" class=abc>$qaz</a></td>";

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация