Basic Blank Webform

Sun, 2013-01-27 14:37 -- admin

<?php
$url = 'http://issues.library.cornell.edu/secure/CreateIssueDetails.jspa';
$headers = array('Content-Type' => 'application/x-www-form-urlencoded', 'X-Atlassian-Token' => 'no-check');

$data = array (
'pid' => 10264,
'issuetype' => 6,
'assignee' => -1,
'reporter' => $form["#post"]["submitted"]['email_address'],
'summary' => 'Submitted from VIVOweb form',
'description' => $form["#post"]["submitted"]['details'] . "\n\nSent by:
" . $form["#post"]["submitted"]['email_address'],
'components' => $form["#post"]["submitted"]['related_to'],
'os_username' => 'vivo ticket',
'os_password' => 'itsrules');
//print_r ($form);
//echo "<br />";
//print_r($data);
//die();
$result = drupal_http_request($url, $headers, 'POST',
http_build_query($data, '', '&'));
?>

Your full name
preserve