Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Getting Values from Query String

General discussions related to php

Moderators: macek, egami, gesf

Getting Values from Query String

Postby sigix » Wed Jul 16, 2003 11:44 pm

Hi !
I am Havin Problem with query string
I have a Page that Show the Personal Information :
That have Name Field
And I am Using Get Method to pass Values from one page to other to echo them to text field so that User can change it

Now if i have value in name = "John Nicolas"
when i get the value in edit page I get this
John
rest of name is lost
how do i get the complete name on edit page

view page----+
name=John Nicolas |
|
|
________________ using Get

edit page--------+
name=John |
|
|
________________ |

Things That i have tried
urlencode worked
urldecode how do i get specific value from query string
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby pootergeist » Thu Jul 17, 2003 2:43 am

foreach($_GET AS $var=>$val)
{
eval("\$_GET['" .$var. "'] = urldecode(" .$val. ");");
}

should theoretically work.

$_GET['var'] = urldecode($_GET['var']);

would be the uneval'ed methodology
pootergeist
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK


Return to PHP General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.