View Full Version : How to add parameter to a PHP file?
09-05-2007, 11:29 AM
How to add parameter to a PHP file, like http://www.domain.com/search.php?q=line1+line2+line3
Thank you so much for helps.
09-05-2007, 12:25 PM
$query = $_GET['q']; // assign line 1 to $query
$lang = $_GET['lang']; // assign en-gb to $lang
$blah = $_GET['blah']; // assign ness to $blah
09-09-2007, 04:49 AM
thank you... your help is very usefull for me... :)
how about '+' sign? how to implemented in address? like ...search.php?q=word1+word2
09-09-2007, 05:05 AM
If you wanted a + you would need to put %2B in instead, look at this page (http://www.degraeve.com/reference/urlencoding.php) if you want to include other characters
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.