Here is a small portion of the form. As you can see "planid" has a value.
HTML Code:
<form action="hosting.php?do=do_request" method="post">
<input type="hidden" name="userid" value="1" />
<input type="hidden" name="planid" value="6" />
For some reason the query isn't picking up the value.
PHP Code:
if($_REQUEST['do'] == "do_request")
{
$vbulletin->input->clean_array_gpc('p', array(
'userid' => TYPE_INT,
'planid' => TYPE_UINT,
'subdomain' => TYPE_STR,
'susername' => TYPE_STR,
'ignore' => TYPE_INT,
));
$getplans = $db->query_first("SELECT posts,title FROM " . TABLE_PREFIX . "hosting_plans WHERE planid='".$db->escape_string($vbulletin->GPC['planid'])."'");
$hp = $db->fetch_array($getplans);
echo "Plan: ".$hp['title']."<br />Posts: ".$hp['posts'];
}
When I echo the values it doesn't show the values.