Support needed

[email protected] ("Babalanda Daniel")
Newsgroups php.install
Message-ID <[email protected]>
Hello
I am an Desktop support person. I want to setup a web page for users so tha
they  can log their problems. I have attached a sample of the results I
need.
I installed PHP 4.3.0 with IIS on one of the Windows XP computers in the
server room and the web page is also on the same computer. The mail server
is different and it runs Lotus Domino 7. Its ip address is 10.192.120.230.
The desktop IP address is 10.192.120.x

When I test my helpdesk page it returns
*Warning*: mail() [function.mail <http://www.php.net/function.mail>]: Failed
to connect to mailserver at "localhost" port 25, verify your "SMTP" and
"smtp_port" setting in php.ini or use ini_set() in *
C:\Inetpub\wwwroot\webpages\Feedback.php* on line *5*

*Warning*: Cannot modify header information - headers already sent by
(output started at C:\Inetpub\wwwroot\webpages\Feedback.php:5) in *
C:\Inetpub\wwwroot\webpages\Feedback.php* on line *7*

Please help tell me the changes in the PHP.ini I need to change.
Alternatively help redesing the script page I can use with this email
address as the receiving email for the forms

I will be so gratefull for the support
HelpDesk.htm (text/html, 4.8 KB)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Help Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10pt;
	font-style: normal;
}
.style2 {font-size: 9px}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; }
.style4 {color: #009900}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
</script>
</head>
<body>
<form action="Feedback.php" method="post" enctype="multipart/form-data" name="form1">
  <table width="90%" border="0" cellpadding="3" cellspacing="3" class="style1">
    <tr>
      <td class="style1">&nbsp;</td>
      <td colspan="4" class="style1 style4">Please complete this form and click the submit button. Try to explain the problem as clearly as possible in your words. You can also attach a print screen of your problem.</td>
    </tr>
    <tr>
      <td width="9%" class="style1 style2">&nbsp;</td>
      <td width="21%" class="style3">&nbsp;</td>
      <td colspan="2">&nbsp;</td>
      <td width="34%">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Requester</td>
      <td colspan="2"><input name="Requester" type="text" id="Requester" size="30" maxlength="40"></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Office</td>
      <td colspan="2"><select name="Office" id="Office">
        <option selected>Choose From List</option>
        <option value="1">Kampala</option>
        <option value="2">Kitgum</option>
        <option value="3">Kotido</option>
        <option value="4">Other</option>
      </select></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Request Type </td>
      <td colspan="2"><select name="ProbType" id="ProbType">
        <option selected>Choose from List</option>
        <option value="1">Server</option>
        <option value="2">User Account</option>
        <option value="3">Lotus</option>
        <option value="4">Internet Connection</option>
        <option value="4">Peoplesoft</option>
        <option value="5">Fasttech</option>
        <option value="2">Computer</option>
        <option value="5">Application</option>
        <option value="6">Other</option>
      </select></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Description</td>
      <td colspan="2"><textarea name="Description" cols="40" rows="10" id="Description"></textarea></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>Print screen (Optional)</td>
      <td colspan="2"><input name="Upload" type="file" id="Upload"></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td colspan="2">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td width="6%"><input name="Submit" type="submit" onClick="MM_validateForm('Requester','','R','Description','','R');MM_callJS('Java');return document.MM_returnValue" value="Submit">      </td>
      <td width="30%"><input name="Reset" type="reset" id="Reset" value="Reset Form"></td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>
</body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.