Web >> Development >> PHP >>  How to extract parameter (name), value pair from html form submission or url encoded string

foreach ( $_REQUEST as $k => $v ) { print "$k = $v<br>\n"; } works with GET as well as POST request methods $_GET array returns par/value pair for GET requests $_POST array returns par/value pair for POST requests