Jump to content

Recommended Posts

I have been working on a website for a client and everything has been functional on my Linux server; however, today he loaded the files onto his IIS server and we are encountering some problems.

 

The user completes a form and clicks submit.  The information is passed through PHP and the user is directed back to the form if successful.  Below is the script used on the form page upon successful form submission.

 

The problem is that - when the form page is accessed from the IIS server - the PHP script almost appears to be ignored.  To see the page operating correctly (Linux) go to http://spencetechsolutions.com/eswack.  To see the page operating incorrectly (IIS) go to http://www.eswack.com/ray/index.htm.

 

Looking for any advise to help resolve this.

 

<?php

$mode=$_GET['mode'];

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Chiropractic Plus - Colorado's Premier Chiropractic Provider</title>

<script type="text/javascript">

var win=null;

function opWin() {

  if(win==null || win.closed) {

    win=window.open("", "Insurance", "width=500, height=150");

    win.document.write("<html><head><title>Verify Insurance<\/title><\/head>");

    win.document.write("<body><center>Do you want us to verify your insurance?<br><br>");

    win.document.write("<input type='button' value='Yes' onclick='window.location=\"verify.htm\";'><\/input> ");

    win.document.write("<input type='button' value='No' onclick='window.close();opener.location=\"index.htm\";'><\/input><\/center><\/body><\/html>");

  }

  win.focus();

}

</script>

<script language="JavaScript" type="text/JavaScript">

<!--

function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;

}

 

function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}

}

 

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[n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}

 

function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

  if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

//-->

</script>

<SCRIPT TYPE="text/javascript">

 

function popup(mylink, windowname)

{

if (! window.focus)return true;

var href;

if (typeof(mylink) == 'string')

  href=mylink;

else

  href=mylink.href;

window.open(href, windowname, 'width=400,height=250,scrollbars=yes');

return false;

}

</SCRIPT>

<script language="JavaScript" src="calendar2.js"></script>

</head>

 

<body onLoad="<?php if($mode==a){echo "opWin()";}?>">

<table width="366" border="0" cellspacing="0" cellpadding="0" align="center">

  <tr>

    <td width="13"><img src="images/topleft.gif" width="13" height="21"></td>

    <td background="images/topspace.gif" colspan="7"><img src="images/topspace.gif" width="35" height="21"></td>

    <td width="12"><img src="images/topright.gif" width="12" height="21"></td>

  </tr>

  <tr>

    <td background="images/leftside.gif" rowspan="6"><img src="images/leftside.gif" width="13" height="30"></td>

   

    <td width="240" rowspan="5" valign="top"><img src="images/left_home2.gif" width="240" height="714" border="0" usemap="#Maptop"></td>

   

    <td width="17"><img src="images/1rays_head.jpg" width="79" height="46"></td>

    <td width="17" style="height: 46px"><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','images/navimages/2home_roll.jpg',1)"><img src="images/navimages/2home.jpg" alt="Chiropractic Plus Home Page" name="Home" width="91" height="46" border="0"></a></td>

    <td width="17"><a href="services.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Services','','images/navimages/3services_roll.jpg',1)"><img src="images/navimages/3services.jpg" alt="Chiropractic Plus Services" name="Services" width="88" height="46" border="0"></a></td>

    <td width="17"><a href="staff.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Staff','','images/navimages/4staff_roll.jpg',1)"><img src="images/navimages/4staff.jpg" alt="Chiropractic Plus Staff" name="Staff" width="88" height="46" border="0"></a></td>

    <td width="17"><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','images/navimages/5contact_roll.jpg',1)"><img src="images/navimages/5contact.jpg" alt="Contact Chiropractic Plus" name="Contact" width="88" height="46" border="0"></a></td>

    <td width="16"><a href="research.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Research','','images/navimages/6research_roll.jpg',1)"><img src="images/navimages/6research.jpg" alt="Research Chiropractic Resources" name="Research" width="106" height="46" border="0"></a></td>

    <td background="images/rigthside.gif" rowspan="6"><img src="images/rigthside.gif" width="12" height="31"></td>

   

   

  </tr>

  <tr>

    <td colspan="6">

    <img src="images/header.jpg" width="540" height="120" border="0" usemap="#header"></td>

  </tr>

  <tr>

    <td colspan="6"><table width="369" border="0" cellspacing="0" cellpadding="0">

      <tr>

        <td><img src="images/subs_left.jpg" width="499" height="50" usemap="#subs_left_Map" border="0"></td>

        <td><a href="subscribe.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SubscriptionButt','','images/subs_butt_roll.jpg',1)"><img src="images/subs_butt.jpg" alt="Subscribe to Chiropractic Plus Newletters" name="SubscriptionButt" width="41" height="50" border="0"></a></td>

      </tr>

    </table></td>

  </tr>

  <tr>

    <td height="10"></td>

    <td></td>

    <td></td>

    <td></td>

    <td></td>

    <td></td>

  </tr>

  <tr>

    <td colspan="6">

<table width="540" height="490" border="0" cellspacing="0" cellpadding="0" id="table1">

      <tr>

        <td width="286" height="21">

<img border="0" src="images/hdr_appointment.gif" width="355" height="18"></td>

        <td width="35"> </td>

        <td width="219" align="center"> </td>

      </tr>

      <tr valign="top">

        <td height="466" colspan="3">

<form name="schedule" method="POST" action="add_appt.php">

<input type="hidden" name="require" value="Name,Address1,City,State,Zip,Phone,Email,Date,Time,Reminder">

<div align="center">

<table border="0" width="500" id="table2" cellspacing="1" cellpadding="0">

<tr>

<?php

if($mode==a){

  echo"

<td width=\"502\" align=\"center\" colspan=\"3\">

<p align=\"center\"><font color=\"green\"><b>Your appointment request was successfully submitted!</b></font></td>";

}

?>

</tr>

 

Thanks,

Dan

Link to comment
https://forums.phpfreaks.com/topic/69585-looking-for-quick-php-help/
Share on other sites

No, not at all.

 

I was hoping someone could take a look at the output of the page on the two different servers and - based on the code provided - tell me why the success message is displaying upon page load when pulled from the IIS server and not from the Linux server.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.