My manager gave me a task…to complete a PHP page by Monday…and all I was given was a wrapper…Ill paste the code, and here is the link as well to the page that I made with the wrapper. The page is blank…I dont know what is supposed to display…I do not know what he wants really. This was all I was given…a wrapper…HELP…this is my FIRST PHP project!
Please be gentle
NOTE: value based on “team Routing Structure”
\n"; echo "user_name=" . $_POST['user_name'] . "
\n"; echo "Product_Name=" . $_POST['Product_Name'] . "
\n"; echo "Assigned_Group=" . $_POST['Assigned_Group'] . "
\n"; echo "Summary=" . $_POST['Summary'] . "
\n"; echo "Notes=" . $_POST['Notes'] . "
\n"; } $credentials=base64_encode("[TeanUserName:Password]"); $variables = array( 'Login_ID' => $_POST['user_login'], 'user_name' => $_POST['user_name'], 'user_login' => $_POST['user_login'], 'Impact' => '4000', 'Urgency' => '4000', 'Operational_Categorization_Tier_1' => 'Modify', 'Operational_Categorization_Tier_2' => 'Access', 'Product_Categorization_Tier_1' => 'Enterprise, Commercial %26 Small Business', 'Product_Categorization_Tier_2' => 'Voice Technology Group', 'Product_Categorization_Tier_3' => 'Unified Communications Systems', 'Product_Name' => $_POST['Product_Name'], 'Manufacturer' => 'Cisco', 'Support_Company' => 'Cisco Systems', 'Support_Organization' => 'Voice Technology Group', 'Assigned_Group' => $_POST['Assigned_Group'], 'Summary' => $_POST['Summary'], 'Notes' => $_POST['Notes'], 'Display' => '1', 'Action' => 'CREATE' ); $post_vars = ""; foreach (array_keys($variables) as $key) $post_vars .= $key . "=" . $variables[$key] . "&"; $post_vars = preg_replace("/&$/", "", $post_vars); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://alli-prd.cisco.com/arsys/servlet/RemedyIncidentWrapper"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_PROXY, ""); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vars); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authorization: Basic ' . $credentials, )); $content = curl_exec( $ch ); curl_close ($ch); echo " " . $content; ?>