Re: Spaces in Variable names/How to get around ' ?

From: Date: Tue, 07 Nov 2000 16:43:23 +0000
Subject: Re: Spaces in Variable names/How to get around ' ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24111@lists.php.net to get a copy of this message
Hiya look @ rawurlencode & rawurldecode Greetz. Wico At 09:10 7-11-00 -0700, Jason Bouwmeester wrote:
I am using SQL Server 7 DB with PHP4. I am passing a variable with a querystring like this: search.php?Name To Search For&Submit=Search now, in IE this is no problem, but NS gives me a HTTP 400 Error. Is there a way I can convert the spaces to + BEFORE I send it? I suppose I could call a JS or can I call a php function as well? Second, when I enter something into the DB, I have to do Movie''s Name and stripslashes() to get Movie's Name. When I do a search on Movie's Name, it returns it no problem but if I click on it to display the information it doesn't find the record in the DB, this is a different page it goes to so that might be the problem but the ' seems to get passed fine from the original page to the search page. TIA, jb Jason Bouwmeester New Media Consultant InterVisual Suite 200, 709 - 11th Ave SW Calgary, AB T2R 0E3 Ph: 403.264.9199 Fax: 403.264.9225 www.intervisual.com "Internet Solutions Developer" -- 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 (#24111) next »