Re: php link problem

From: Date: Wed, 17 Oct 2001 17:04:13 +0000
Subject: Re: php link problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71358@lists.php.net to get a copy of this message
http://www.php.net/urlencode Use that function on the value that goes within the url. (the value for id) That man entry has useful information as well. regards, Philip Olson On Wed, 17 Oct 2001, Caleb Carvalho wrote: > Hi Dan, > > I am not sure as I'm new to php myself, > > the full code is > > <td>$row[product]</td> > <td><a href=solution.php?id=$row[prob_title]>$row[prob_title]</a></td> > <td>$row[description]</td><td> $row[solution]</td> > </tr> > > now, if i put the double quotes, i get errors, > > the only problem is when the title have space in between i cannot get the > full title and the rest of fields i.e description and solution do not appear > in solution.php either, but without spaces it works fine,, > > > > Caleb Carvalho > Application Engineer > LoadRunner/APM > ----------------------------------------------------------------------------------------- > Enterprise Testing and Performance Management Solutions > ----------------------------------------------------------------------------------------- > Mercury Interactive > 410 Frimley Business Park > Frimley, Surrey. GU16 7ST > United Kingdom > Telephone : +44 (0)1276 808300 > > > > >From: "DL Neil" <PHPml@DandE.HomeChoice.co.uk> > >Reply-To: "DL Neil" <PHPml@DandE.HomeChoice.co.uk> > >To: "Caleb Carvalho" <havanero@hotmail.com>, > ><php-general@lists.php.net> > >Subject: Re: [PHP] php link problem > >Date: Wed, 17 Oct 2001 16:34:09 +0100 > > > > > I have the following problem > > > > > > <td><a > > > href=solution.php?id=$row[prob_title]>$row[prob_title]</a></td> > > > > > > calling my solution file that display the selected title link, the > >problem > > > that i'm having is that when I have a title with no space example > > > "clickhere" it works fine, bringing all information related the > >selected > > > title link i.e. description and solution, > > > > > > but if there is any space ex. "clik here" it brings only the > > > "clik" > >word as > > > title and ignores the rest including the info related to the pro_tile > >field, > > > like description and solution, > > > > > > > >Caleb, > > > >Isn't it an HTML problem? (not PHP - remember PHP is here to render/output > >HTML) > >What happens if you put double-quotes around the URL? > > > >Regards, > >=dn > > > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#71358) next »