Page 1 of 1

use of $_REQUEST['']

Posted: Thu Nov 23, 2006 1:42 am
by itsmani1
I am sending values using post method and i want to access all of them on next page, now i don't know the field names and i want to access them all using request or some other if available in php
is it possible that i can access them if i don't know field names.

Posted: Thu Nov 23, 2006 1:59 am
by brendandonhue

Code: Select all

foreach($_POST as $key=>$value)
{
  //do something with $key and $value;
}
Or use array_keys() to get the field names.