Re: Dynamil Links
| From: | Joe Lloyd | Date: | Fri, 16 Feb 2001 17:58:45 +0000 |
| Subject: | Re: Dynamil Links | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6693@lists.php.net to get a copy of this message | ||
Have a look at http://www.php.net/manual/en/function.urlencode.php
and
http://www.php.net/manual/en/function.urldecode.php.
When you're
passing the argument in the URL, it needs to have the spaces changed to
'%20' for the variable.
Basically you would do
$h=urlencode($h); in the one page and in articleload.php do
$h=urldecode($h);
--Joe
Sridhar Ranganathan wrote:
>
> Hi,
>
> I have a search engine. It finds articles and displays the headings. When I
> click on the heading, I wanna load the article using a single page on the
> fly.
>
> I did as follows. $h is the heading.
>
> echo("<font size='4'
> color='#003399'>$h<br></font><font size='1'><a
> href='articleload.php?head=$h'>Read
> This</a></font><br><br><HR noShade
> SIZE=1 width='80%'>");
>
> In articleload.php, I printed $head but, it prints only the first word of
> the heading. Can anyone help me?
>
> Thanks in advance
> Sridhar Ranganathan
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Joseph C. Lloyd joe@soundprint.org http://www.soundprint.org
Online Manager - System Administrator - Web Designer
--
Linux frobozz.smci.org 2.4.1 #1 Tue Jan 30 10:12:19 EST 2001 i686
unknown