Jump to content

Echo Posted Array


unemployment

Recommended Posts

How can I echo the $id?  Every time I post approved it refreshes my page and I can see the echoed out ID.  I need to know what the ID value is.

if (isset($_POST['approve']))
{
if(is_array($_POST['approve'])) {
	$keys = array_keys($_POST['approve']);
	$id = $keys[0];

	echo $id;
	die();
	//$sql = "UPDATE `blog_comments` SET `approved` = 1 WHERE `post_id` = '$id'";
	//header("Location: " . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'] );
}
}

Link to comment
https://forums.phpfreaks.com/topic/232284-echo-posted-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.