Jump to content

[SOLVED] client_login.php?message=User+name+and+password+not+found.


simplysped

Recommended Posts

Hey guys, I am trying to setup a custom login box for out company websites storefront software.

 

there is an option for a reference link, so if you login incorrectly it brings you back to our website. Which is nice, it also adds ?message=User+name+and+password+not+found. to the end of our client_login.php in the URL. How can I make that Message, display itself on our page as "Sorry! Username and Password have not been found!" or something but only when the ?message tag is there?

 

thanks a bunch  ;)

Link to comment
Share on other sites

or if it's if the message is ther and equals anything (not just: User+name+and+password+not+found)

then use this:

<?php
if(isset($_GET['message']){
     echo $_GET['message'];
}else{
     //redirect to the correct page
}
?>

Link to comment
Share on other sites

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Shawmut Printing: Design Print Mail Fulfillment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Shawmut Printing, Shawmut Printing and Mailing, Shawmut Advertising, Commercial print, Variable data, Variable Data Printer, HP Indigo, Komori, Heildelberg, Printing, Brochure, Direct Mail, Newsletters, Flyers, Postcards, On Demand Printing, Print Design, Print Shop, Printer New England, Printer NE, Printer MA, Printer Massachusetts, Printer Boston, PURL, Fulfillment, eFulfillment, e-fulfillment, Fulfillment NE, Fulfillment MA, Fulfillment Massachusetts, Fulfillment Boston, Peluso, Cherry Hill, Direct Mail, Direct Marketing, Shawmut Communications, Mailing, Mail Shop, Marketing, Personalized URL">
<meta name="description" content="Shawmut Printing is a full-service print solutions company, offering our clients design, printing, mailing, and fulfillment, including online fulfillment and inventory in real time. ">
<!-- ImageReady Preload Script (header.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    sm_header_03_over = newImage("images/sm-header_03-over.gif");
    sm_header_04_over = newImage("images/sm-header_04-over.gif");
    preloadFlag = true;
  }
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<!-- End Preload Script -->
<link href="scripts/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#000000" ONLOAD="preloadImages();MM_preloadImages('images/b-efullfillment2.gif')" >
<div align="center">
  <table width="759" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" valign="top" background="images/left-clientlogin.jpg"><table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="212">    </td>
          </tr>
          <tr>
            <td><div align="center" class="sidebox-text">
                <p align="center">
                  <script language="JavaScript1.1" src="scripts/circle-clientlogin.js"></script>
                </p>
              </div></td>
          </tr>
        </table></td>
      <td width="605" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="600"><TABLE WIDTH=607 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                <TR>
                  <TD ROWSPAN=3><IMG SRC="images/sm-header_01.gif" WIDTH=503 HEIGHT=70 ALT=""></TD>
                  <TD><img src="images/sm-header_02.gif" width=104 height=31 alt=""></TD>
                </TR>
                <TR>
                  <TD><A HREF="mailto:info@shawmutprinting.com"
        ONMOUSEOVER="changeImages('sm_header_03', 'images/sm-header_03-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_03', 'images/sm-header_03.gif'); return true;"> <IMG NAME="sm_header_03" SRC="images/sm-header_03.gif" WIDTH=104 HEIGHT=16 BORDER=0 ALT=""></A></TD>
                </TR>
                <TR>
                  <TD><A HREF="ftp://ftp.shawmutprinting.com" target="_blank"
        ONMOUSEOVER="changeImages('sm_header_04', 'images/sm-header_04-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_04', 'images/sm-header_04.gif'); return true;"> <IMG NAME="sm_header_04" SRC="images/sm-header_04.gif" WIDTH=104 HEIGHT=23 BORDER=0 ALT=""></A></TD>
                </TR>
              </TABLE></td>
          </tr>
          <tr>
            <td height="31"><script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="dropmenu.js" vqp_uid0=207263>cdd__codebase = "scripts/";cdd__codebase207263 = "scripts/";</script>
              <script language="JavaScript" vqptag="datafile" src="scripts/dropmenu.js"></script>
              <script vqptag="placement" vqp_menuid="207263" language="JavaScript">create_menu(207263)</script>
            </td>
          </tr>
        </table>
        <table width="95%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td><p align="center"><img src="images/t-clientlogin.gif" width="353" height="24"></p>
              <p> <span class="design-title">eFulfillment</span><br>
                To log on to our eFulfillment department please fill in your password 
                and username. If you need a username and/or password, please contact 
                your Sales Representative for more information.<br>
                <a href="http://www.four51.com/logon.asp" target="_blank" onMouseOver="MM_swapImage('Image8','','images/b-efullfillment2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/b-efullfillment1.gif" name="Image8" width="120" height="20" border="0" class="imagepad"></a>
                <br>
              <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
<FORM Method=post Action="https://www.four51.com/ui/logon.aspx">
<TR>
  <TD><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
<TD height="10"><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
</TR>
<TR>
  <TD width="125"><div align="right"><b>Username:</b></div></TD>
<TD><INPUT Type=text Name="Username" Value="" Size=30></TD>
</TR>

<TR>
  <TD width="125"><div align="right"><b>Password:</b></div></TD>
  <TD><input type=password name="Password" size=30 value=""></TD>
</TR>
<tr valign="middle">
                    <td height="50" colspan="2" class="fields-required">
  <div align="center">
  	<input type=hidden name="return" value="http://www.shawmutprinting.com/client_login.php">
    <input name="logon" type="submit" class="button" value="Submit" Alt="Log On" /><br>

  </div></td>
                  </tr>
</FORM>
</table>
<?php
if($_GET['message'] == "User+name+and+password+not+found"){
echo "Sorry! Username and/or password have not been found!";
}
?>
</p>

      

              <p class="design-title">File Transfer </p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%"><div align="center"><a href="http://www.fetchsoftworks.com" target="_blank"><img src="images/logo-fetch.jpg" width="149" height="112" border="0"></a></div></td>
                  <td width="50%"><div align="center"><a href="http://www.cuteftp.com" target="_blank"><img src="images/logo-cuteftp.gif" width="109" height="76" border="0"></a></div></td>
                </tr>
                <tr>
                  <td height="45"><div align="center"><span class="title-black"><strong>Fetch 
                      FTP Instructions for MAC OS</strong></span><br>
                      <strong><a href="http://www.fetchsoftworks.com" target="_blank">Click 
                      Here</a></strong></div></td>
                  <td height="45"><div align="center"><span class="title-black">Cute 
                      FTP Instructions for WIN OS <a href="http://www.cuteftp.com" target="_blank"><strong></strong></a></span><a href="http://www.cuteftp.com" target="_blank"><strong><br>
                      Click Here</strong></a></div></td>
                </tr>
              </table>
              <p align="center"><em>Using Netscape Communicator or Netscape Navigator 
                3.0 or higher? <br>
                You can send your files even more easily through your browser!<br>
                See below....</em></p>
              <p><span class="design-title">Browser Transfer</span><br>
                Shawmut allows you to directly upload multiple files directly 
                to our secure server for the ease and expediency of your latest 
                project. For assistance, please contact your Shawmut Representative 
                for a thorough explanation or troubleshooting.</p>
        <?php 
           $msg = $_GET['msg'];
           if ($msg != "") {?>
          <p align="center"><h5><?php echo urldecode($msg);?></h5></p>
        <?php }?>
              <form action="process/login.php" method="post" name="login_form">
                <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
                  <tr>
                    <td height="10" class="fields-required"><img src="images/spacer.gif" width="100" height="10"></td>
                    <td height="10"><img src="images/spacer.gif" width="100" height="10"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Username:</div></td>
                    <td><input name="uname" type="text" class="textbox" id="uname" size="30"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Password:</div></td>
                    <td><input name="password" type="password" class="textbox" id="password" size="30"></td>
                  </tr>
                  <tr valign="middle">
                    <td height="50" colspan="2" class="fields-required"><div align="center">
                        <input name="Submit" type="submit" class="button" value="Submit">
                      </div></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td valign="top"> </td>
      <td height="35"><div align="center" class="copyright">© 2007 Shawmut 
          Printing Incorporated and Shawmut Communications LLC. All rights reserved. </div></td>
    </tr>
  </table>
</div>
</body>

Link to comment
Share on other sites

try that:

<?php
if(isset($_POST['logon']){
if(!isset($_GET['message']){
	header("location: https://www.four51.com/ui/logon.aspx");
	exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Shawmut Printing: Design Print Mail Fulfillment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Shawmut Printing, Shawmut Printing and Mailing, Shawmut Advertising, Commercial print, Variable data, Variable Data Printer, HP Indigo, Komori, Heildelberg, Printing, Brochure, Direct Mail, Newsletters, Flyers, Postcards, On Demand Printing, Print Design, Print Shop, Printer New England, Printer NE, Printer MA, Printer Massachusetts, Printer Boston, PURL, Fulfillment, eFulfillment, e-fulfillment, Fulfillment NE, Fulfillment MA, Fulfillment Massachusetts, Fulfillment Boston, Peluso, Cherry Hill, Direct Mail, Direct Marketing, Shawmut Communications, Mailing, Mail Shop, Marketing, Personalized URL">
<meta name="description" content="Shawmut Printing is a full-service print solutions company, offering our clients design, printing, mailing, and fulfillment, including online fulfillment and inventory in real time. ">
<!-- ImageReady Preload Script (header.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    sm_header_03_over = newImage("images/sm-header_03-over.gif");
    sm_header_04_over = newImage("images/sm-header_04-over.gif");
    preloadFlag = true;
  }
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<!-- End Preload Script -->
<link href="scripts/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#000000" ONLOAD="preloadImages();MM_preloadImages('images/b-efullfillment2.gif')" >
<div align="center">
  <table width="759" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" valign="top" background="images/left-clientlogin.jpg"><table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="212">    </td>
          </tr>
          <tr>
            <td><div align="center" class="sidebox-text">
                <p align="center">
                  <script language="JavaScript1.1" src="scripts/circle-clientlogin.js"></script>
                </p>
              </div></td>
          </tr>
        </table></td>
      <td width="605" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="600"><TABLE WIDTH=607 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                <TR>
                  <TD ROWSPAN=3><IMG SRC="images/sm-header_01.gif" WIDTH=503 HEIGHT=70 ALT=""></TD>
                  <TD><img src="images/sm-header_02.gif" width=104 height=31 alt=""></TD>
                </TR>
                <TR>
                  <TD><A HREF="mailto:info@shawmutprinting.com"
        ONMOUSEOVER="changeImages('sm_header_03', 'images/sm-header_03-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_03', 'images/sm-header_03.gif'); return true;"> <IMG NAME="sm_header_03" SRC="images/sm-header_03.gif" WIDTH=104 HEIGHT=16 BORDER=0 ALT=""></A></TD>
                </TR>
                <TR>
                  <TD><A HREF="ftp://ftp.shawmutprinting.com" target="_blank"
        ONMOUSEOVER="changeImages('sm_header_04', 'images/sm-header_04-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_04', 'images/sm-header_04.gif'); return true;"> <IMG NAME="sm_header_04" SRC="images/sm-header_04.gif" WIDTH=104 HEIGHT=23 BORDER=0 ALT=""></A></TD>
                </TR>
              </TABLE></td>
          </tr>
          <tr>
            <td height="31"><script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="dropmenu.js" vqp_uid0=207263>cdd__codebase = "scripts/";cdd__codebase207263 = "scripts/";</script>
              <script language="JavaScript" vqptag="datafile" src="scripts/dropmenu.js"></script>
              <script vqptag="placement" vqp_menuid="207263" language="JavaScript">create_menu(207263)</script>
            </td>
          </tr>
        </table>
        <table width="95%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td><p align="center"><img src="images/t-clientlogin.gif" width="353" height="24"></p>
              <p> <span class="design-title">eFulfillment</span><br>
                To log on to our eFulfillment department please fill in your password 
                and username. If you need a username and/or password, please contact 
                your Sales Representative for more information.<br>
                <a href="http://www.four51.com/logon.asp" target="_blank" onMouseOver="MM_swapImage('Image8','','images/b-efullfillment2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/b-efullfillment1.gif" name="Image8" width="120" height="20" border="0" class="imagepad"></a>
                <br>
              <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
<FORM Method=post Action="<?php echo $_SERVER['PHP_SELF']; ?>">
<TR>
  <TD><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
<TD height="10"><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
</TR>
<TR>
  <TD width="125"><div align="right"><b>Username:</b></div></TD>
<TD><INPUT Type=text Name="Username" Value="" Size=30></TD>
</TR>

<TR>
  <TD width="125"><div align="right"><b>Password:</b></div></TD>
  <TD><input type=password name="Password" size=30 value=""></TD>
</TR>
<tr valign="middle">
                    <td height="50" colspan="2" class="fields-required">
  <div align="center">
  	<input type=hidden name="return" value="http://www.shawmutprinting.com/client_login.php">
    <input name="logon" type="submit" class="button" value="Submit" Alt="Log On" /><br>

  </div></td>
                  </tr>
</FORM>
</table>
<?php
if(isset($_GET['message'])){
echo $_GET['message'];
}
?>
</p>

      

              <p class="design-title">File Transfer </p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%"><div align="center"><a href="http://www.fetchsoftworks.com" target="_blank"><img src="images/logo-fetch.jpg" width="149" height="112" border="0"></a></div></td>
                  <td width="50%"><div align="center"><a href="http://www.cuteftp.com" target="_blank"><img src="images/logo-cuteftp.gif" width="109" height="76" border="0"></a></div></td>
                </tr>
                <tr>
                  <td height="45"><div align="center"><span class="title-black"><strong>Fetch 
                      FTP Instructions for MAC OS</strong></span><br>
                      <strong><a href="http://www.fetchsoftworks.com" target="_blank">Click 
                      Here</a></strong></div></td>
                  <td height="45"><div align="center"><span class="title-black">Cute 
                      FTP Instructions for WIN OS <a href="http://www.cuteftp.com" target="_blank"><strong></strong></a></span><a href="http://www.cuteftp.com" target="_blank"><strong><br>
                      Click Here</strong></a></div></td>
                </tr>
              </table>
              <p align="center"><em>Using Netscape Communicator or Netscape Navigator 
                3.0 or higher? <br>
                You can send your files even more easily through your browser!<br>
                See below....</em></p>
              <p><span class="design-title">Browser Transfer</span><br>
                Shawmut allows you to directly upload multiple files directly 
                to our secure server for the ease and expediency of your latest 
                project. For assistance, please contact your Shawmut Representative 
                for a thorough explanation or troubleshooting.</p>
        <?php 
           $msg = $_GET['msg'];
           if ($msg != "") {?>
          <p align="center"><h5><?php echo urldecode($msg);?></h5></p>
        <?php }?>
              <form action="process/login.php" method="post" name="login_form">
                <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
                  <tr>
                    <td height="10" class="fields-required"><img src="images/spacer.gif" width="100" height="10"></td>
                    <td height="10"><img src="images/spacer.gif" width="100" height="10"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Username:</div></td>
                    <td><input name="uname" type="text" class="textbox" id="uname" size="30"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Password:</div></td>
                    <td><input name="password" type="password" class="textbox" id="password" size="30"></td>
                  </tr>
                  <tr valign="middle">
                    <td height="50" colspan="2" class="fields-required"><div align="center">
                        <input name="Submit" type="submit" class="button" value="Submit">
                      </div></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td valign="top"> </td>
      <td height="35"><div align="center" class="copyright">© 2007 Shawmut 
          Printing Incorporated and Shawmut Communications LLC. All rights reserved. </div></td>
    </tr>
  </table>
</div>
</body>

Link to comment
Share on other sites

try that:

<?php
if(isset($_POST['logon']){
if(!isset($_GET['message']){
	header("location: https://www.four51.com/ui/logon.aspx");
	exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Shawmut Printing: Design Print Mail Fulfillment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Shawmut Printing, Shawmut Printing and Mailing, Shawmut Advertising, Commercial print, Variable data, Variable Data Printer, HP Indigo, Komori, Heildelberg, Printing, Brochure, Direct Mail, Newsletters, Flyers, Postcards, On Demand Printing, Print Design, Print Shop, Printer New England, Printer NE, Printer MA, Printer Massachusetts, Printer Boston, PURL, Fulfillment, eFulfillment, e-fulfillment, Fulfillment NE, Fulfillment MA, Fulfillment Massachusetts, Fulfillment Boston, Peluso, Cherry Hill, Direct Mail, Direct Marketing, Shawmut Communications, Mailing, Mail Shop, Marketing, Personalized URL">
<meta name="description" content="Shawmut Printing is a full-service print solutions company, offering our clients design, printing, mailing, and fulfillment, including online fulfillment and inventory in real time. ">
<!-- ImageReady Preload Script (header.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    sm_header_03_over = newImage("images/sm-header_03-over.gif");
    sm_header_04_over = newImage("images/sm-header_04-over.gif");
    preloadFlag = true;
  }
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<!-- End Preload Script -->
<link href="scripts/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#000000" ONLOAD="preloadImages();MM_preloadImages('images/b-efullfillment2.gif')" >
<div align="center">
  <table width="759" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" valign="top" background="images/left-clientlogin.jpg"><table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="212">    </td>
          </tr>
          <tr>
            <td><div align="center" class="sidebox-text">
                <p align="center">
                  <script language="JavaScript1.1" src="scripts/circle-clientlogin.js"></script>
                </p>
              </div></td>
          </tr>
        </table></td>
      <td width="605" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="600"><TABLE WIDTH=607 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                <TR>
                  <TD ROWSPAN=3><IMG SRC="images/sm-header_01.gif" WIDTH=503 HEIGHT=70 ALT=""></TD>
                  <TD><img src="images/sm-header_02.gif" width=104 height=31 alt=""></TD>
                </TR>
                <TR>
                  <TD><A HREF="mailto:info@shawmutprinting.com"
        ONMOUSEOVER="changeImages('sm_header_03', 'images/sm-header_03-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_03', 'images/sm-header_03.gif'); return true;"> <IMG NAME="sm_header_03" SRC="images/sm-header_03.gif" WIDTH=104 HEIGHT=16 BORDER=0 ALT=""></A></TD>
                </TR>
                <TR>
                  <TD><A HREF="ftp://ftp.shawmutprinting.com" target="_blank"
        ONMOUSEOVER="changeImages('sm_header_04', 'images/sm-header_04-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_04', 'images/sm-header_04.gif'); return true;"> <IMG NAME="sm_header_04" SRC="images/sm-header_04.gif" WIDTH=104 HEIGHT=23 BORDER=0 ALT=""></A></TD>
                </TR>
              </TABLE></td>
          </tr>
          <tr>
            <td height="31"><script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="dropmenu.js" vqp_uid0=207263>cdd__codebase = "scripts/";cdd__codebase207263 = "scripts/";</script>
              <script language="JavaScript" vqptag="datafile" src="scripts/dropmenu.js"></script>
              <script vqptag="placement" vqp_menuid="207263" language="JavaScript">create_menu(207263)</script>
            </td>
          </tr>
        </table>
        <table width="95%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td><p align="center"><img src="images/t-clientlogin.gif" width="353" height="24"></p>
              <p> <span class="design-title">eFulfillment</span><br>
                To log on to our eFulfillment department please fill in your password 
                and username. If you need a username and/or password, please contact 
                your Sales Representative for more information.<br>
                <a href="http://www.four51.com/logon.asp" target="_blank" onMouseOver="MM_swapImage('Image8','','images/b-efullfillment2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/b-efullfillment1.gif" name="Image8" width="120" height="20" border="0" class="imagepad"></a>
                <br>
              <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
<FORM Method=post Action="<?php echo $_SERVER['PHP_SELF']; ?>">
<TR>
  <TD><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
<TD height="10"><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
</TR>
<TR>
  <TD width="125"><div align="right"><b>Username:</b></div></TD>
<TD><INPUT Type=text Name="Username" Value="" Size=30></TD>
</TR>

<TR>
  <TD width="125"><div align="right"><b>Password:</b></div></TD>
  <TD><input type=password name="Password" size=30 value=""></TD>
</TR>
<tr valign="middle">
                    <td height="50" colspan="2" class="fields-required">
  <div align="center">
  	<input type=hidden name="return" value="http://www.shawmutprinting.com/client_login.php">
    <input name="logon" type="submit" class="button" value="Submit" Alt="Log On" /><br>

  </div></td>
                  </tr>
</FORM>
</table>
<?php
if(isset($_GET['message'])){
echo $_GET['message'];
}
?>
</p>

      

              <p class="design-title">File Transfer </p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%"><div align="center"><a href="http://www.fetchsoftworks.com" target="_blank"><img src="images/logo-fetch.jpg" width="149" height="112" border="0"></a></div></td>
                  <td width="50%"><div align="center"><a href="http://www.cuteftp.com" target="_blank"><img src="images/logo-cuteftp.gif" width="109" height="76" border="0"></a></div></td>
                </tr>
                <tr>
                  <td height="45"><div align="center"><span class="title-black"><strong>Fetch 
                      FTP Instructions for MAC OS</strong></span><br>
                      <strong><a href="http://www.fetchsoftworks.com" target="_blank">Click 
                      Here</a></strong></div></td>
                  <td height="45"><div align="center"><span class="title-black">Cute 
                      FTP Instructions for WIN OS <a href="http://www.cuteftp.com" target="_blank"><strong></strong></a></span><a href="http://www.cuteftp.com" target="_blank"><strong><br>
                      Click Here</strong></a></div></td>
                </tr>
              </table>
              <p align="center"><em>Using Netscape Communicator or Netscape Navigator 
                3.0 or higher? <br>
                You can send your files even more easily through your browser!<br>
                See below....</em></p>
              <p><span class="design-title">Browser Transfer</span><br>
                Shawmut allows you to directly upload multiple files directly 
                to our secure server for the ease and expediency of your latest 
                project. For assistance, please contact your Shawmut Representative 
                for a thorough explanation or troubleshooting.</p>
        <?php 
           $msg = $_GET['msg'];
           if ($msg != "") {?>
          <p align="center"><h5><?php echo urldecode($msg);?></h5></p>
        <?php }?>
              <form action="process/login.php" method="post" name="login_form">
                <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
                  <tr>
                    <td height="10" class="fields-required"><img src="images/spacer.gif" width="100" height="10"></td>
                    <td height="10"><img src="images/spacer.gif" width="100" height="10"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Username:</div></td>
                    <td><input name="uname" type="text" class="textbox" id="uname" size="30"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Password:</div></td>
                    <td><input name="password" type="password" class="textbox" id="password" size="30"></td>
                  </tr>
                  <tr valign="middle">
                    <td height="50" colspan="2" class="fields-required"><div align="center">
                        <input name="Submit" type="submit" class="button" value="Submit">
                      </div></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td valign="top"> </td>
      <td height="35"><div align="center" class="copyright">© 2007 Shawmut 
          Printing Incorporated and Shawmut Communications LLC. All rights reserved. </div></td>
    </tr>
  </table>
</div>
</body>

 

page comes up blank

Link to comment
Share on other sites

try putting error reporting on:

<?php
error_reporting(E_ALL);

if(isset($_POST['logon']){
if(!isset($_GET['message']){
	header("location: https://www.four51.com/ui/logon.aspx");
	exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Shawmut Printing: Design Print Mail Fulfillment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Shawmut Printing, Shawmut Printing and Mailing, Shawmut Advertising, Commercial print, Variable data, Variable Data Printer, HP Indigo, Komori, Heildelberg, Printing, Brochure, Direct Mail, Newsletters, Flyers, Postcards, On Demand Printing, Print Design, Print Shop, Printer New England, Printer NE, Printer MA, Printer Massachusetts, Printer Boston, PURL, Fulfillment, eFulfillment, e-fulfillment, Fulfillment NE, Fulfillment MA, Fulfillment Massachusetts, Fulfillment Boston, Peluso, Cherry Hill, Direct Mail, Direct Marketing, Shawmut Communications, Mailing, Mail Shop, Marketing, Personalized URL">
<meta name="description" content="Shawmut Printing is a full-service print solutions company, offering our clients design, printing, mailing, and fulfillment, including online fulfillment and inventory in real time. ">
<!-- ImageReady Preload Script (header.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    sm_header_03_over = newImage("images/sm-header_03-over.gif");
    sm_header_04_over = newImage("images/sm-header_04-over.gif");
    preloadFlag = true;
  }
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<!-- End Preload Script -->
<link href="scripts/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#000000" ONLOAD="preloadImages();MM_preloadImages('images/b-efullfillment2.gif')" >
<div align="center">
  <table width="759" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" valign="top" background="images/left-clientlogin.jpg"><table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="212">    </td>
          </tr>
          <tr>
            <td><div align="center" class="sidebox-text">
                <p align="center">
                  <script language="JavaScript1.1" src="scripts/circle-clientlogin.js"></script>
                </p>
              </div></td>
          </tr>
        </table></td>
      <td width="605" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="600"><TABLE WIDTH=607 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                <TR>
                  <TD ROWSPAN=3><IMG SRC="images/sm-header_01.gif" WIDTH=503 HEIGHT=70 ALT=""></TD>
                  <TD><img src="images/sm-header_02.gif" width=104 height=31 alt=""></TD>
                </TR>
                <TR>
                  <TD><A HREF="mailto:info@shawmutprinting.com"
        ONMOUSEOVER="changeImages('sm_header_03', 'images/sm-header_03-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_03', 'images/sm-header_03.gif'); return true;"> <IMG NAME="sm_header_03" SRC="images/sm-header_03.gif" WIDTH=104 HEIGHT=16 BORDER=0 ALT=""></A></TD>
                </TR>
                <TR>
                  <TD><A HREF="ftp://ftp.shawmutprinting.com" target="_blank"
        ONMOUSEOVER="changeImages('sm_header_04', 'images/sm-header_04-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_04', 'images/sm-header_04.gif'); return true;"> <IMG NAME="sm_header_04" SRC="images/sm-header_04.gif" WIDTH=104 HEIGHT=23 BORDER=0 ALT=""></A></TD>
                </TR>
              </TABLE></td>
          </tr>
          <tr>
            <td height="31"><script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="dropmenu.js" vqp_uid0=207263>cdd__codebase = "scripts/";cdd__codebase207263 = "scripts/";</script>
              <script language="JavaScript" vqptag="datafile" src="scripts/dropmenu.js"></script>
              <script vqptag="placement" vqp_menuid="207263" language="JavaScript">create_menu(207263)</script>
            </td>
          </tr>
        </table>
        <table width="95%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td><p align="center"><img src="images/t-clientlogin.gif" width="353" height="24"></p>
              <p> <span class="design-title">eFulfillment</span><br>
                To log on to our eFulfillment department please fill in your password 
                and username. If you need a username and/or password, please contact 
                your Sales Representative for more information.<br>
                <a href="http://www.four51.com/logon.asp" target="_blank" onMouseOver="MM_swapImage('Image8','','images/b-efullfillment2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/b-efullfillment1.gif" name="Image8" width="120" height="20" border="0" class="imagepad"></a>
                <br>
              <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
<FORM Method=post Action="<?php echo $_SERVER['PHP_SELF']; ?>">
<TR>
  <TD><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
<TD height="10"><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
</TR>
<TR>
  <TD width="125"><div align="right"><b>Username:</b></div></TD>
<TD><INPUT Type=text Name="Username" Value="" Size=30></TD>
</TR>

<TR>
  <TD width="125"><div align="right"><b>Password:</b></div></TD>
  <TD><input type=password name="Password" size=30 value=""></TD>
</TR>
<tr valign="middle">
                    <td height="50" colspan="2" class="fields-required">
  <div align="center">
  	<input type=hidden name="return" value="http://www.shawmutprinting.com/client_login.php">
    <input name="logon" type="submit" class="button" value="Submit" Alt="Log On" /><br>

  </div></td>
                  </tr>
</FORM>
</table>
<?php
if(isset($_GET['message'])){
echo $_GET['message'];
}
?>
</p>

      

              <p class="design-title">File Transfer </p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%"><div align="center"><a href="http://www.fetchsoftworks.com" target="_blank"><img src="images/logo-fetch.jpg" width="149" height="112" border="0"></a></div></td>
                  <td width="50%"><div align="center"><a href="http://www.cuteftp.com" target="_blank"><img src="images/logo-cuteftp.gif" width="109" height="76" border="0"></a></div></td>
                </tr>
                <tr>
                  <td height="45"><div align="center"><span class="title-black"><strong>Fetch 
                      FTP Instructions for MAC OS</strong></span><br>
                      <strong><a href="http://www.fetchsoftworks.com" target="_blank">Click 
                      Here</a></strong></div></td>
                  <td height="45"><div align="center"><span class="title-black">Cute 
                      FTP Instructions for WIN OS <a href="http://www.cuteftp.com" target="_blank"><strong></strong></a></span><a href="http://www.cuteftp.com" target="_blank"><strong><br>
                      Click Here</strong></a></div></td>
                </tr>
              </table>
              <p align="center"><em>Using Netscape Communicator or Netscape Navigator 
                3.0 or higher? <br>
                You can send your files even more easily through your browser!<br>
                See below....</em></p>
              <p><span class="design-title">Browser Transfer</span><br>
                Shawmut allows you to directly upload multiple files directly 
                to our secure server for the ease and expediency of your latest 
                project. For assistance, please contact your Shawmut Representative 
                for a thorough explanation or troubleshooting.</p>
        <?php 
           $msg = $_GET['msg'];
           if ($msg != "") {?>
          <p align="center"><h5><?php echo urldecode($msg);?></h5></p>
        <?php }?>
              <form action="process/login.php" method="post" name="login_form">
                <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
                  <tr>
                    <td height="10" class="fields-required"><img src="images/spacer.gif" width="100" height="10"></td>
                    <td height="10"><img src="images/spacer.gif" width="100" height="10"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Username:</div></td>
                    <td><input name="uname" type="text" class="textbox" id="uname" size="30"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Password:</div></td>
                    <td><input name="password" type="password" class="textbox" id="password" size="30"></td>
                  </tr>
                  <tr valign="middle">
                    <td height="50" colspan="2" class="fields-required"><div align="center">
                        <input name="Submit" type="submit" class="button" value="Submit">
                      </div></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td valign="top"> </td>
      <td height="35"><div align="center" class="copyright">© 2007 Shawmut 
          Printing Incorporated and Shawmut Communications LLC. All rights reserved. </div></td>
    </tr>
  </table>
</div>
</body>

Link to comment
Share on other sites

hmm.. how about this:

<?php
error_reporting(E_ALL);

if(!isset($_GET['message'] && isset($_POST['logon'])){
header("location: https://www.four51.com/ui/logon.aspx");
exit;
}else{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Shawmut Printing: Design Print Mail Fulfillment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Shawmut Printing, Shawmut Printing and Mailing, Shawmut Advertising, Commercial print, Variable data, Variable Data Printer, HP Indigo, Komori, Heildelberg, Printing, Brochure, Direct Mail, Newsletters, Flyers, Postcards, On Demand Printing, Print Design, Print Shop, Printer New England, Printer NE, Printer MA, Printer Massachusetts, Printer Boston, PURL, Fulfillment, eFulfillment, e-fulfillment, Fulfillment NE, Fulfillment MA, Fulfillment Massachusetts, Fulfillment Boston, Peluso, Cherry Hill, Direct Mail, Direct Marketing, Shawmut Communications, Mailing, Mail Shop, Marketing, Personalized URL">
<meta name="description" content="Shawmut Printing is a full-service print solutions company, offering our clients design, printing, mailing, and fulfillment, including online fulfillment and inventory in real time. ">
<!-- ImageReady Preload Script (header.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    sm_header_03_over = newImage("images/sm-header_03-over.gif");
    sm_header_04_over = newImage("images/sm-header_04-over.gif");
    preloadFlag = true;
  }
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<!-- End Preload Script -->
<link href="scripts/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#000000" ONLOAD="preloadImages();MM_preloadImages('images/b-efullfillment2.gif')" >
<div align="center">
  <table width="759" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" valign="top" background="images/left-clientlogin.jpg"><table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="212">    </td>
          </tr>
          <tr>
            <td><div align="center" class="sidebox-text">
                <p align="center">
                  <script language="JavaScript1.1" src="scripts/circle-clientlogin.js"></script>
                </p>
              </div></td>
          </tr>
        </table></td>
      <td width="605" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="600"><TABLE WIDTH=607 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                <TR>
                  <TD ROWSPAN=3><IMG SRC="images/sm-header_01.gif" WIDTH=503 HEIGHT=70 ALT=""></TD>
                  <TD><img src="images/sm-header_02.gif" width=104 height=31 alt=""></TD>
                </TR>
                <TR>
                  <TD><A HREF="mailto:info@shawmutprinting.com"
        ONMOUSEOVER="changeImages('sm_header_03', 'images/sm-header_03-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_03', 'images/sm-header_03.gif'); return true;"> <IMG NAME="sm_header_03" SRC="images/sm-header_03.gif" WIDTH=104 HEIGHT=16 BORDER=0 ALT=""></A></TD>
                </TR>
                <TR>
                  <TD><A HREF="ftp://ftp.shawmutprinting.com" target="_blank"
        ONMOUSEOVER="changeImages('sm_header_04', 'images/sm-header_04-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_04', 'images/sm-header_04.gif'); return true;"> <IMG NAME="sm_header_04" SRC="images/sm-header_04.gif" WIDTH=104 HEIGHT=23 BORDER=0 ALT=""></A></TD>
                </TR>
              </TABLE></td>
          </tr>
          <tr>
            <td height="31"><script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="dropmenu.js" vqp_uid0=207263>cdd__codebase = "scripts/";cdd__codebase207263 = "scripts/";</script>
              <script language="JavaScript" vqptag="datafile" src="scripts/dropmenu.js"></script>
              <script vqptag="placement" vqp_menuid="207263" language="JavaScript">create_menu(207263)</script>
            </td>
          </tr>
        </table>
        <table width="95%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td><p align="center"><img src="images/t-clientlogin.gif" width="353" height="24"></p>
              <p> <span class="design-title">eFulfillment</span><br>
                To log on to our eFulfillment department please fill in your password 
                and username. If you need a username and/or password, please contact 
                your Sales Representative for more information.<br>
                <a href="http://www.four51.com/logon.asp" target="_blank" onMouseOver="MM_swapImage('Image8','','images/b-efullfillment2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/b-efullfillment1.gif" name="Image8" width="120" height="20" border="0" class="imagepad"></a>
                <br>
              <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
<FORM Method=post Action="<?php echo $_SERVER['PHP_SELF']; ?>">
<TR>
  <TD><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
<TD height="10"><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
</TR>
<TR>
  <TD width="125"><div align="right"><b>Username:</b></div></TD>
<TD><INPUT Type=text Name="Username" Value="" Size=30></TD>
</TR>

<TR>
  <TD width="125"><div align="right"><b>Password:</b></div></TD>
  <TD><input type=password name="Password" size=30 value=""></TD>
</TR>
<tr valign="middle">
                    <td height="50" colspan="2" class="fields-required">
  <div align="center">
  	<input type=hidden name="return" value="http://www.shawmutprinting.com/client_login.php">
    <input name="logon" type="submit" class="button" value="Submit" Alt="Log On" /><br>

  </div></td>
                  </tr>
</FORM>
</table>
<?php
if(isset($_GET['message'])){
echo $_GET['message'];
}
?>
</p>

      

              <p class="design-title">File Transfer </p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%"><div align="center"><a href="http://www.fetchsoftworks.com" target="_blank"><img src="images/logo-fetch.jpg" width="149" height="112" border="0"></a></div></td>
                  <td width="50%"><div align="center"><a href="http://www.cuteftp.com" target="_blank"><img src="images/logo-cuteftp.gif" width="109" height="76" border="0"></a></div></td>
                </tr>
                <tr>
                  <td height="45"><div align="center"><span class="title-black"><strong>Fetch 
                      FTP Instructions for MAC OS</strong></span><br>
                      <strong><a href="http://www.fetchsoftworks.com" target="_blank">Click 
                      Here</a></strong></div></td>
                  <td height="45"><div align="center"><span class="title-black">Cute 
                      FTP Instructions for WIN OS <a href="http://www.cuteftp.com" target="_blank"><strong></strong></a></span><a href="http://www.cuteftp.com" target="_blank"><strong><br>
                      Click Here</strong></a></div></td>
                </tr>
              </table>
              <p align="center"><em>Using Netscape Communicator or Netscape Navigator 
                3.0 or higher? <br>
                You can send your files even more easily through your browser!<br>
                See below....</em></p>
              <p><span class="design-title">Browser Transfer</span><br>
                Shawmut allows you to directly upload multiple files directly 
                to our secure server for the ease and expediency of your latest 
                project. For assistance, please contact your Shawmut Representative 
                for a thorough explanation or troubleshooting.</p>
           <?php 
           $msg = $_GET['msg'];
           if ($msg != "") {
          	echo '<p align="center"><h5>' . urldecode($msg) . '</h5></p>';
           }
	   ?>
              <form action="process/login.php" method="post" name="login_form">
                <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
                  <tr>
                    <td height="10" class="fields-required"><img src="images/spacer.gif" width="100" height="10"></td>
                    <td height="10"><img src="images/spacer.gif" width="100" height="10"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Username:</div></td>
                    <td><input name="uname" type="text" class="textbox" id="uname" size="30"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Password:</div></td>
                    <td><input name="password" type="password" class="textbox" id="password" size="30"></td>
                  </tr>
                  <tr valign="middle">
                    <td height="50" colspan="2" class="fields-required"><div align="center">
                        <input name="Submit" type="submit" class="button" value="Submit">
                      </div></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td valign="top"> </td>
      <td height="35"><div align="center" class="copyright">© 2007 Shawmut 
          Printing Incorporated and Shawmut Communications LLC. All rights reserved. </div></td>
    </tr>
  </table>
</div>
</body>
</html>
<?php
}
?>

Link to comment
Share on other sites

heh, just realised I'd missed out a bracket, but that should've thrown up an error mesage for you..

This code works fine for me:

<?php
error_reporting(E_ALL);

if(!isset($_GET['message']) && isset($_POST['logon'])){
header("location: https://www.four51.com/ui/logon.aspx");
exit;
}else{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Shawmut Printing: Design Print Mail Fulfillment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Shawmut Printing, Shawmut Printing and Mailing, Shawmut Advertising, Commercial print, Variable data, Variable Data Printer, HP Indigo, Komori, Heildelberg, Printing, Brochure, Direct Mail, Newsletters, Flyers, Postcards, On Demand Printing, Print Design, Print Shop, Printer New England, Printer NE, Printer MA, Printer Massachusetts, Printer Boston, PURL, Fulfillment, eFulfillment, e-fulfillment, Fulfillment NE, Fulfillment MA, Fulfillment Massachusetts, Fulfillment Boston, Peluso, Cherry Hill, Direct Mail, Direct Marketing, Shawmut Communications, Mailing, Mail Shop, Marketing, Personalized URL">
<meta name="description" content="Shawmut Printing is a full-service print solutions company, offering our clients design, printing, mailing, and fulfillment, including online fulfillment and inventory in real time. ">
<!-- ImageReady Preload Script (header.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    sm_header_03_over = newImage("images/sm-header_03-over.gif");
    sm_header_04_over = newImage("images/sm-header_04-over.gif");
    preloadFlag = true;
  }
}

// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<!-- End Preload Script -->
<link href="scripts/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#000000" ONLOAD="preloadImages();MM_preloadImages('images/b-efullfillment2.gif')" >
<div align="center">
  <table width="759" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" valign="top" background="images/left-clientlogin.jpg"><table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="212">    </td>
          </tr>
          <tr>
            <td><div align="center" class="sidebox-text">
                <p align="center">
                  <script language="JavaScript1.1" src="scripts/circle-clientlogin.js"></script>
                </p>
              </div></td>
          </tr>
        </table></td>
      <td width="605" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="600"><TABLE WIDTH=607 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                <TR>
                  <TD ROWSPAN=3><IMG SRC="images/sm-header_01.gif" WIDTH=503 HEIGHT=70 ALT=""></TD>
                  <TD><img src="images/sm-header_02.gif" width=104 height=31 alt=""></TD>
                </TR>
                <TR>
                  <TD><A HREF="mailto:info@shawmutprinting.com"
        ONMOUSEOVER="changeImages('sm_header_03', 'images/sm-header_03-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_03', 'images/sm-header_03.gif'); return true;"> <IMG NAME="sm_header_03" SRC="images/sm-header_03.gif" WIDTH=104 HEIGHT=16 BORDER=0 ALT=""></A></TD>
                </TR>
                <TR>
                  <TD><A HREF="ftp://ftp.shawmutprinting.com" target="_blank"
        ONMOUSEOVER="changeImages('sm_header_04', 'images/sm-header_04-over.gif'); return true;"
        ONMOUSEOUT="changeImages('sm_header_04', 'images/sm-header_04.gif'); return true;"> <IMG NAME="sm_header_04" SRC="images/sm-header_04.gif" WIDTH=104 HEIGHT=23 BORDER=0 ALT=""></A></TD>
                </TR>
              </TABLE></td>
          </tr>
          <tr>
            <td height="31"><script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="dropmenu.js" vqp_uid0=207263>cdd__codebase = "scripts/";cdd__codebase207263 = "scripts/";</script>
              <script language="JavaScript" vqptag="datafile" src="scripts/dropmenu.js"></script>
              <script vqptag="placement" vqp_menuid="207263" language="JavaScript">create_menu(207263)</script>
            </td>
          </tr>
        </table>
        <table width="95%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td><p align="center"><img src="images/t-clientlogin.gif" width="353" height="24"></p>
              <p> <span class="design-title">eFulfillment</span><br>
                To log on to our eFulfillment department please fill in your password 
                and username. If you need a username and/or password, please contact 
                your Sales Representative for more information.<br>
                <a href="http://www.four51.com/logon.asp" target="_blank" onMouseOver="MM_swapImage('Image8','','images/b-efullfillment2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/b-efullfillment1.gif" name="Image8" width="120" height="20" border="0" class="imagepad"></a>
                <br>
              <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
<FORM Method=post Action="<?php echo $_SERVER['PHP_SELF']; ?>">
<TR>
  <TD><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
<TD height="10"><img src="images/spacer.gif" alt="spacer" width="100" height="10" /></TD>
</TR>
<TR>
  <TD width="125"><div align="right"><b>Username:</b></div></TD>
<TD><INPUT Type=text Name="Username" Value="" Size=30></TD>
</TR>

<TR>
  <TD width="125"><div align="right"><b>Password:</b></div></TD>
  <TD><input type=password name="Password" size=30 value=""></TD>
</TR>
<tr valign="middle">
                    <td height="50" colspan="2" class="fields-required">
  <div align="center">
  	<input type=hidden name="return" value="http://www.shawmutprinting.com/client_login.php">
    <input name="logon" type="submit" class="button" value="Submit" Alt="Log On" /><br>

  </div></td>
                  </tr>
</FORM>
</table>
<?php
if(isset($_GET['message'])){
echo $_GET['message'];
}
?>
</p>

      

              <p class="design-title">File Transfer </p>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%"><div align="center"><a href="http://www.fetchsoftworks.com" target="_blank"><img src="images/logo-fetch.jpg" width="149" height="112" border="0"></a></div></td>
                  <td width="50%"><div align="center"><a href="http://www.cuteftp.com" target="_blank"><img src="images/logo-cuteftp.gif" width="109" height="76" border="0"></a></div></td>
                </tr>
                <tr>
                  <td height="45"><div align="center"><span class="title-black"><strong>Fetch 
                      FTP Instructions for MAC OS</strong></span><br>
                      <strong><a href="http://www.fetchsoftworks.com" target="_blank">Click 
                      Here</a></strong></div></td>
                  <td height="45"><div align="center"><span class="title-black">Cute 
                      FTP Instructions for WIN OS <a href="http://www.cuteftp.com" target="_blank"><strong></strong></a></span><a href="http://www.cuteftp.com" target="_blank"><strong><br>
                      Click Here</strong></a></div></td>
                </tr>
              </table>
              <p align="center"><em>Using Netscape Communicator or Netscape Navigator 
                3.0 or higher? <br>
                You can send your files even more easily through your browser!<br>
                See below....</em></p>
              <p><span class="design-title">Browser Transfer</span><br>
                Shawmut allows you to directly upload multiple files directly 
                to our secure server for the ease and expediency of your latest 
                project. For assistance, please contact your Shawmut Representative 
                for a thorough explanation or troubleshooting.</p>
           <?php 
           $msg = $_GET['msg'];
           if ($msg != "") {
          	echo '<p align="center"><h5>' . urldecode($msg) . '</h5></p>';
           }
	   ?>
              <form action="process/login.php" method="post" name="login_form">
                <table width="75%" border="0" align="center" cellpadding="3" cellspacing="0" class="table-gray">
                  <tr>
                    <td height="10" class="fields-required"><img src="images/spacer.gif" width="100" height="10"></td>
                    <td height="10"><img src="images/spacer.gif" width="100" height="10"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Username:</div></td>
                    <td><input name="uname" type="text" class="textbox" id="uname" size="30"></td>
                  </tr>
                  <tr>
                    <td width="125" class="fields-required"><div align="right">Password:</div></td>
                    <td><input name="password" type="password" class="textbox" id="password" size="30"></td>
                  </tr>
                  <tr valign="middle">
                    <td height="50" colspan="2" class="fields-required"><div align="center">
                        <input name="Submit" type="submit" class="button" value="Submit">
                      </div></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td valign="top"> </td>
      <td height="35"><div align="center" class="copyright">© 2007 Shawmut 
          Printing Incorporated and Shawmut Communications LLC. All rights reserved. </div></td>
    </tr>
  </table>
</div>
</body>
</html>
<?php
}
?>

Link to comment
Share on other sites

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.