[PHP] RE: Query String Name ?

2001-07-26 Thread Miroslav Hudák

  
  Hi!

  I think, that you could solve this problem by parsing the querystring
at own...
  Try out this code:

name= $vname;
$qs_args[$c++]->value = $vval;
}


//This is only for demonstrational purposes, output is list
//of all variable names and values parsed from query string 
foreach ($qs_args as $qa) echo $qa->name." =
".$qa->value."\n";
?>

  Then, you'll have in $qs_args array structure, which contains the
  variable names and values of all parsed query string vars.
  
  Good luck,
  
  m.:-/

+--[e-m@il:[EMAIL PROTECTED]]---[whois:
MH18067-RIPE]-+
|"We are not retreating, we are advancing in another direction."
|
+--[Miroslav Hudak, http://maniax.host.sk]--[- mX
-]-+  

> -Original Message-
> From: A [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, July 26, 2001 12:15 PM
> To: PHP General List
> Subject: Query String Name ?
> 
> 
> Hi there,
> 
> is there any way to access two variables in a query string 
> that have the same name e.g
> 
> test.php?name=joe&name=bob
> 
> Is there any way to extract both values of name without 
> changing the way the query string is created?
> 
> 
> Thanks,
> Abe
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Query String Name ?

2001-07-26 Thread Yasuo Ohgaki

Use array.

test.php?name[]=joe&name[]=bob

You'll get array "name" has "joe","bob".

Or parse query string by yourself.

--
Yasuo Ohgaki


"A" <[EMAIL PROTECTED]> wrote in message 008801c115bb$cad13360$4301a8c0@abe">news:008801c115bb$cad13360$4301a8c0@abe...
Hi there,

is there any way to access two variables in a query string that have the same
name e.g

test.php?name=joe&name=bob

Is there any way to extract both values of name without changing the way the
query string is created?


Thanks,
Abe



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]