Getting Values from Query String

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
php-forum Active User
php-forum Active User
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

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
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

New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

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
avatar image based upon nasas apod (only updates if I post though)

Post Reply