Re: correct way to post form info

From: Date: Mon, 27 Nov 2000 20:33:13 +0000
Subject: Re: correct way to post form info
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27451@lists.php.net to get a copy of this message
On Mon, 27 Nov 2000, kmurrah wrote: > Greetings. > > I'm attempting to post to a graphic the information obtained by a form. All > is well as long as I have no spaces in my input, but if I do, nothing is > read beyond that. I know that if I were creating the URL myself, I could > use %20 to denote the spaces, but how do I do it in this context? > > $output_string = "<IMG src=gd_test2.php?name=$name&title=$title>" ; > > Thanks in advance for the help for what is undoubtedly a simple question. > > Kenn > > > Try: $output_string = "<IMG src=gd_test2.php?name=" .urlencode($name)."&title=".urlencode($title).">" ; -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#27451) next »