Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get all elements of post reply 1

Status
Not open for further replies.

foxphpbomb

Programmer
Apr 10, 2007
29
US
How can I get all the element of a post reply if I don't know the names of the individual post variables?
 
Code:
if (count($_POST) > 0){
echo "<table>\r\n";
 foreach ($_POST as $key=$val){
  echo "\t<tr><td>$key</td><td>$val</td></tr>\r\n";
 }
echo "</table>";
}
 
I'm getting a blank page when I enter this scrit. What's more, any other html on the page disappears as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top