|
-
Mar 14th, 2006, 05:46 AM
#1
Thread Starter
Addicted Member
$input = urldecode($_SERVER['QUERY_STRING']);
Last edited by NOTSOSURE; Mar 28th, 2006 at 10:39 AM.
-
Mar 14th, 2006, 07:07 PM
#2
Re: $input = urldecode($_SERVER['QUERY_STRING']);
$input = urldecode($_GET['textarea']);
or (but less eficient)
$input = preg_replace('#textarea=(.*)&#si', '$1', urldecode($_SERVER['QUERY_STRING']);
-
Mar 16th, 2006, 01:42 AM
#3
Re: $input = urldecode($_SERVER['QUERY_STRING']);
The $_GET and $_POST arrays are urldecoded automatically.
-
Mar 16th, 2006, 03:57 AM
#4
Addicted Member
Re: $input = urldecode($_SERVER['QUERY_STRING']);
if i used the POST method of passing variables how would i grap the information from the address bar using
$input = preg_replace('#textarea=(.*)&#si', '$1', urldecode($_SERVER['QUERY_STRING']);
thanks
-
Mar 16th, 2006, 04:00 AM
#5
Re: $input = urldecode($_SERVER['QUERY_STRING']);
Post vars do not go through the URL You would have to use $_POST or $_REQUEST. And Adam is right the $_GET array is automatically decoded. I forgot about that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|