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("$h href='articleload.php?head=$h'>Read This 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Joseph C. Lloyd[EMAIL PROTECTED]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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]