php-windows Digest 13 Jan 2005 14:22:52 -0000 Issue 2533

Topics (messages 25297 through 25301):

Undefined variable
        25297 by: Louis Young
        25298 by: Jason Barnett
        25299 by: Rafael Soares

HTML in PHP to a File
        25300 by: MikeA
        25301 by: Luis Moreira

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi there

I'm getting the following error regardless of whether register_globals is on or off.

*Notice*: Undefined variable: button1 in *C:\Program Files\Apache Group\Apache2\htdocs\spar\admin\login.php* on line *28

Here's the code for the entire page:

<?
 session_start();
 session_register("Login_session");
 session_register("Outlet_session");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>

<meta name="Description" content="Kwikpay keeps electronic commerce simple and smart, providing a total solution for delivering a virtual payment. Empowering customers to manage their financial obligations anytime and anywhere with products which are user-friendly is what lies at the core of Kwikpay's business. The core business of Kwikpay is to empower customers to manage their financial obligations anytime and anywhere through smart products that are easy to use and manage. It is the principal objective of Kwikpay to fundamentally enhance the value, volume, quality and accessibility of e-commerce products and services offered at point of sale. This objective is reflected in our mission statement: To be the leading provider of electronic commerce solutions, facilitating transactions that enhance the ability of any business to satisfy their customers">
<meta name="Keywords" content="KWIK, kwik, Kwik, Pay, PAY, Kwikpay, KwikPay, KWIKPAY, quick, Quick, quickpay, QuickPay, Business, Magic, electronic, commerce, customers, products, solutions, transactions, Prepaid Cellular, Vodacom, MTN, Cell-C, Telkom, Century City, Cape Town, Kwikpay SA, Johannesburg, Durban, Port Elizabeth, Bloemfontein, SA, sa, terminal, terminal, customer,Internet, support, Benefits">
<title>Kwikpay</title>
<link rel="STYLESHEET" type="text/css" href="../style/style.css">
<script language="javascript" src="../scripts/functions.js"></script>
<script language="JavaScript1.2" src="../scripts/fw_menu.js"></script>
<script language="javascript" src="../scripts/links.js"></script>
</head>


<body bgcolor="#FFFFFF" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0" topmargin="0">


<?
$ErrorMessage="";
if (${"button1"}=="Login" && ${"siteno"}!="" && ${"password"}!="" && ${"emailaddress"}!="")
{


// $oConnection is of type "ADODB.Connection"

// $oRecordset is of type "ADODB.Recordset"


$a2p_connstr=$Application["ConnectionString"];
$a2p_uid=strstr($a2p_connstr,'uid');
$a2p_uid=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
$a2p_pwd=strstr($a2p_connstr,'pwd');
$a2p_pwd=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
$a2p_database=strstr($a2p_connstr,'dsn');
$a2p_database=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
$oConnection=mysql_connect("localhost",$a2p_uid,$a2p_pwd);
mysql_select_db($a2p_database,$oConnection);
$oRecordset=$oRecordset_query=mysql_query(("SELECT * FROM tbl_WWWUsers WHERE szOutlet = '".trim(${"SiteNo"})."' AND szPassword LIKE '".trim(${"Password"})."' AND szEmail LIKE '".trim(${"EmailAddress"})."' AND iActive = 1"),$oConnection); $oRecordset=mysql_fetch_array($oRecordset_query);


 if (!($oRecordset==0))
 {

// [unsupported] session.timeout=20;
   $Login_session=true;
   $Outlet_session=$oRecordset["szOutlet"];
   $oRecordset=null;

   $oConnection=null;

   header("Location: "."clientmenu.asp");
 }
   else
 {

$ErrorMessage="One of the fields are not correct and cannot be validated, <br> or your outlet has not been registered - please register !";
}



}

?>


<!-- Main Table -->
<table cellpadding="0" cellspacing="0" border="0" width="770">
<tr>
<td align="left" valign="top">
<!-- Table 1 -->
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#99CC33" width="770">
<tr>
<td align="left" valign="top"><a href="../main.php"><img src="../images/kplogo.gif" alt="" width="87" height="86" border="0"></a></td>
<td align="left" valign="top">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#99CC33" width="457">
<tr>
<td align="left" valign="top" colspan="2"><img src="../images/shim.gif" alt="" width="457" height="27" border="0"></td>
</tr>
<tr>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="15" height="33" border="0"></td>
<td align="left" valign="middle" class="blueheader">Outlet Login</td>
</tr>
<tr>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="15" height="26" border="0"></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="450" height="26" border="0"></td>
</tr> </table>
</td>
<td align="left" valign="top">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#99CC33" width="226">
<tr>
<td align="left" valign="top" colspan="12"><img src="../images/shim.gif" alt="" width="226" height="27" border="0"></td>
</tr>
<tr> <td align="left" valign="top"><a href="../new.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('new','','../images/navigation/t1_over.gif',1)"><img src="../images/navigation/t1.gif" alt="What's New" name="new" id="new" width="33" height="33" border="0"></a></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
<td align="left" valign="top"><a href="../kwikpayuk.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('world','','../images/navigation/t2_over.gif',1)"><img src="../images/navigation/t2.gif" alt="Kwik around the world" name="world" id="world" width="33" height="33" border="0"></a></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
<td align="left" valign="top"><a href="../loginintro.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('login','','../images/navigation/t3_over.gif',1)"><img src="../images/navigation/t3.gif" alt="Outlet Login" name="login" id="login" width="33" height="33" border="0"></a></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
<td align="left" valign="top"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../images/navigation/t4_over.gif',1)"><img src="../images/navigation/t4.gif" alt="Home" name="home" id="home" width="33" height="33" border="0"></a></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
<td align="left" valign="top"><a href="mailto:[EMAIL PROTECTED]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','../images/navigation/t5_over.gif',1)"><img src="../images/navigation/t5.gif" alt="Contact Us" name="contact" id="contact" width="33" height="33" border="0"></a></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
<td align="left" valign="top"><a href="../sitemap.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sitemap','','../images/navigation/t6_over.gif',1)"><img src="../images/navigation/t6.gif" alt="Site Map" name="sitemap" id="sitemap" width="33" height="33" border="0"></a></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="4" height="33" border="0"></td> </tr>
<tr>
<td align="left" valign="top" colspan="12"><img src="../images/shim.gif" alt="" width="226" height="26" border="0"></td>
</tr> </table>
</td> </tr>
</table>
</td>
</tr>
<tr> <td align="left" valign="top">
<!-- Table 2 -->
<table cellpadding="0" cellspacing="0" border="0" width="780" background="../images/clientbackground.jpg">
<tr>
<td align="left" valign="top" colspan="2"><img src="../images/shim.gif" alt="" width="780" height="20" border="0"></td>
</tr> <tr>
<td align="left" valign="top" width="20"><img src="../images/shim.gif" alt="" width="20" height="10" border="0"></td>
<td align="left" valign="top" width="750"> <!--- Main Content --->
<table cellpadding="0" cellspacing="0" border="0"> <tr>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="50" height="10" border="0"></td>
<td align="center" valign="top" colspan="3">
<table cellpadding="0" cellspacing="0" border="0">
<form action="login.php" method="post" id="MyForm" name="MyForm"> <tr>
<td align="center" valign="top" colspan="4" class="redtext"><? if ($ErrorMessage!="")
{
?><? echo $ErrorMessage; ?><br><br><? }
else
{
?><br><br><br> <? } ?></td>
</tr>
<tr>
<td align="left" valign="top" colspan="4"><img src="../images/shim.gif" alt="" width="1" height="5" border="0"></td>
</tr> <tr>
<td align="right" valign="top" class="bluetext">Outlet No:</td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="10" height="1" border="0"></td>
<td align="left" valign="top"><INPUT name="SiteNo" maxlength="8" size="6" value="<? echo $Outlet_session; ?>"></td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="100" height="1" border="0"><a href="../loginintro.php" class="pagecontent"><img src="../images/buttons/howtoreg.gif" alt="Register" width="153" height="35" border="0"></a></td>
</tr>
<tr>
<td align="left" valign="top" colspan="3"><img src="../images/shim.gif" alt="" width="1" height="5" border="0"></td>
</tr>
<tr>
<td align="left" valign="top" class="bluetext">Email Address:</td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="10" height="1" border="0"></td>
<td align="left" valign="top"><INPUT name="emailaddress" maxlength="40" size="30" value="<? echo trim(${"emailaddress"}); ?>"></td>
<td align="left" valign="top"><img src="images/shim.gif" alt="" width="100" height="1" border="0"><a href="password.php"><img src="../images/buttons/forgotpassword.gif" alt="Forgot Password" width="153" height="35" border="0"></a></td>
</tr>
<tr>
<td align="left" valign="top" colspan="3"><img src="../images/shim.gif" alt="" width="1" height="5" border="0"></td>
</tr>
<tr>
<td align="right" valign="top" class="bluetext">Password:</td>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="10" height="1" border="0"></td>
<td align="left" valign="top"><INPUT name="password" type=password maxlength="20" size="20></td>
<td align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top" colspan="4"><img src="../images/shim.gif" alt="" width="1" height="60" border="0"></td>
</tr>
<tr>
<td align="left" valign="top" colspan="4"><img src="../images/shim.gif" alt="" width="1" height="20" border="0"></td>
</tr>
<tr>
<td align="center" valign="top" colspan="4"><INPUT type="submit" value="Login" id="button1" name=button1>&nbsp;<INPUT type="reset" value="Reset" id=button2 name=button2></td>
</tr>
</form>
<tr>
<td align="left" valign="top" colspan="4"><img src="../images/shim.gif" alt="" width="1" height="20" border="0"></td>
</tr>
<tr>
<td align="left" valign="top" colspan="4" class="bluetext">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="bluetext">
<u>Please Note</u>:
</td>
<td align="left" valign="top" class="bluetext">
<img src="../images/shim.gif" alt="" width="5" height="1" border="0">
</td>
<td align="left" valign="top" class="bluetext">
Notification of change of email address shall be provided to Kwikpay<br> in writing with immediate effect of the change being actioned.
</td>
</tr> </table>
</td>
</tr>
</table> </td> </tr> <tr>
<td align="left" valign="top"><img src="../images/shim.gif" alt="" width="100" height="30" border="0"></td>
<td align="left" valign="top" colspan="3"></td>
</tr> </table> Cheers
Louis
*

--- End Message ---
--- Begin Message --- Louis Young wrote:
Hi there

I'm getting the following error regardless of whether register_globals is on or off.

*Notice*: Undefined variable: button1 in *C:\Program Files\Apache Group\Apache2\htdocs\spar\admin\login.php* on line *28


You don't need to post the entire page, oy vey that was long! Just go to the file specified and look at line 28. Simple as that ;)


If you're asking what the notice "Undefined variable" means, well I suggest you search the manual and/or the archives for the answer to that.

--
Teach a person to fish...

Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://www.php.net/manual/en/index.php
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2

--- End Message ---
--- Begin Message ---
You must disable "Notices" in php.ini

Look for the line  "error_reporting  =E_ALL", comment it and uncomment
";error_reporting = E_ALL & ~E_NOTICE".

This is not na error, this is a notice. Good for development, but don't
affects execution.

See ya, happy new year!

-----Mensagem original-----
De: Louis Young [mailto:[EMAIL PROTECTED] 
Enviada em: quarta-feira, 12 de janeiro de 2005 14:02
Para: [email protected]
Assunto: [PHP-WIN] Undefined variable

Hi there

I'm getting the following error regardless of whether register_globals is on
or off.

*Notice*: Undefined variable: button1 in *C:\Program Files\Apache
Group\Apache2\htdocs\spar\admin\login.php* on line *28

Here's the code for the entire page:

<?
  session_start();
  session_register("Login_session");
  session_register("Outlet_session");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>

   
    <meta name="Description" content="Kwikpay keeps electronic 
commerce simple and smart, providing a total solution for 
delivering a virtual payment. Empowering customers to manage 
their financial obligations anytime and anywhere with products 
which are user-friendly is what lies at the core of Kwikpay's 
business. The core business of Kwikpay is to empower customers 
to manage their financial obligations anytime and anywhere 
through smart products that are easy to use and manage. It is 
the principal objective of Kwikpay to fundamentally enhance the 
value, volume, quality and accessibility of e-commerce products 
and services offered at point of sale. This objective is 
reflected in our mission
statement: To be the leading provider of electronic commerce 
solutions, facilitating transactions that enhance the ability 
of any business to satisfy their customers">
    <meta name="Keywords" content="KWIK, kwik, Kwik, Pay, PAY, 
Kwikpay, KwikPay, KWIKPAY, quick, Quick, quickpay, QuickPay, 
Business, Magic, electronic, commerce, customers, products, 
solutions, transactions, Prepaid Cellular, Vodacom, MTN, 
Cell-C, Telkom, Century City, Cape Town, Kwikpay SA, 
Johannesburg, Durban, Port Elizabeth, Bloemfontein, SA, sa, 
terminal, terminal, customer,Internet, support, Benefits">
   
    <title>Kwikpay</title>
   
    <link rel="STYLESHEET" type="text/css" href="../style/style.css">
    <script language="javascript" 
src="../scripts/functions.js"></script>
    <script language="JavaScript1.2" 
src="../scripts/fw_menu.js"></script>
    <script language="javascript" src="../scripts/links.js"></script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" rightmargin="0" marginheight="0" 
marginwidth="0" topmargin="0">


<?
$ErrorMessage="";
if (${"button1"}=="Login" && ${"siteno"}!="" && ${"password"}!="" &&
${"emailaddress"}!="")
{

// $oConnection is of type "ADODB.Connection"

// $oRecordset is of type "ADODB.Recordset"


  $a2p_connstr=$Application["ConnectionString"];
  $a2p_uid=strstr($a2p_connstr,'uid');
  $a2p_uid=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
  $a2p_pwd=strstr($a2p_connstr,'pwd');
  $a2p_pwd=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
  $a2p_database=strstr($a2p_connstr,'dsn');
  
$a2p_database=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($
d,'=')-1);
  $oConnection=mysql_connect("localhost",$a2p_uid,$a2p_pwd);
  mysql_select_db($a2p_database,$oConnection);
$oRecordset=$oRecordset_query=mysql_query(("SELECT * FROM 
tbl_WWWUsers WHERE szOutlet = '".trim(${"SiteNo"})."' AND 
szPassword LIKE '".trim(${"Password"})."' AND szEmail LIKE 
'".trim(${"EmailAddress"})."' 
AND iActive = 1"),$oConnection);
$oRecordset=mysql_fetch_array($oRecordset_query);

  if (!($oRecordset==0))
  {

// [unsupported] session.timeout=20;
    $Login_session=true;
    $Outlet_session=$oRecordset["szOutlet"];
    $oRecordset=null;

    $oConnection=null;

    header("Location: "."clientmenu.asp");
  }
    else
  {

    $ErrorMessage="One of the fields are not correct and cannot 
be validated, <br> or your outlet has not been registered - 
please register !";
  }


}

?>


<!-- Main Table -->
<table cellpadding="0" cellspacing="0" border="0" width="770">
    <tr>
        <td align="left" valign="top">
            <!-- Table 1 -->
            <table cellpadding="0" cellspacing="0" border="0" 
bgcolor="#99CC33" width="770">
                <tr>
                    <td align="left" valign="top"><a 
href="../main.php"><img src="../images/kplogo.gif" alt="" width="87" 
height="86" border="0"></a></td>
                    <td align="left" valign="top">
                        <table cellpadding="0" cellspacing="0" 
border="0" bgcolor="#99CC33" width="457">
                            <tr>
                                <td align="left" valign="top" 
colspan="2"><img src="../images/shim.gif" alt="" width="457" 
height="27" 
border="0"></td>
                            </tr>
                            <tr>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="15" height="33" border="0"></td>
                                <td align="left" valign="middle" 
class="blueheader">Outlet Login</td>
                            </tr>
                            <tr>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="15" height="26" border="0"></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="450" height="26" border="0"></td>
                            </tr>                           
                        </table>
                    </td>
                    <td align="left" valign="top">
                        <table cellpadding="0" cellspacing="0" 
border="0" bgcolor="#99CC33" width="226">
                            <tr>
                                <td align="left" valign="top" 
colspan="12"><img src="../images/shim.gif" alt="" width="226" 
height="27" border="0"></td>
                            </tr>
                            <tr>                               
                                <td align="left" valign="top"><a 
href="../new.php" onMouseOut="MM_swapImgRestore()" 
onMouseOver="MM_swapImage('new','','../images/navigation/t1_over
.gif',1)"><img 
src="../images/navigation/t1.gif" alt="What's New" name="new" id="new" 
width="33" height="33" border="0"></a></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
                                <td align="left" valign="top"><a 
href="../kwikpayuk.php" onMouseOut="MM_swapImgRestore()" 
onMouseOver="MM_swapImage('world','','../images/navigation/t2_ov
er.gif',1)"><img 
src="../images/navigation/t2.gif" alt="Kwik around the world" 
name="world" id="world" width="33" height="33" border="0"></a></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
                                <td align="left" valign="top"><a 
href="../loginintro.php" onMouseOut="MM_swapImgRestore()" 
onMouseOver="MM_swapImage('login','','../images/navigation/t3_ov
er.gif',1)"><img 
src="../images/navigation/t3.gif" alt="Outlet Login" name="login" 
id="login" width="33" height="33" border="0"></a></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
                                <td align="left" valign="top"><a 
href="index.php" onMouseOut="MM_swapImgRestore()" 
onMouseOver="MM_swapImage('home','','../images/navigation/t4_ove
r.gif',1)"><img 
src="../images/navigation/t4.gif" alt="Home" name="home" id="home" 
width="33" height="33" border="0"></a></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
                                <td align="left" valign="top"><a 
href="mailto:[EMAIL PROTECTED]" onMouseOut="MM_swapImgRestore()" 
onMouseOver="MM_swapImage('contact','','../images/navigation/t5_
over.gif',1)"><img 
src="../images/navigation/t5.gif" alt="Contact Us" name="contact" 
id="contact" width="33" height="33" border="0"></a></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="4" height="33" border="0"></td>
                                <td align="left" valign="top"><a 
href="../sitemap.php" onMouseOut="MM_swapImgRestore()" 
onMouseOver="MM_swapImage('sitemap','','../images/navigation/t6_
over.gif',1)"><img 
src="../images/navigation/t6.gif" alt="Site Map" name="sitemap" 
id="sitemap" width="33" height="33" border="0"></a></td>
                                <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="4" height="33" 
border="0"></td>                               
                            </tr>
                            <tr>
                                <td align="left" valign="top" 
colspan="12"><img src="../images/shim.gif" alt="" width="226" 
height="26" border="0"></td>
                            </tr>                           
                        </table>
                    </td>                   
                </tr>
            </table>
           </td>
    </tr>
    <tr>   
        <td align="left" valign="top">
            <!-- Table 2 -->
            <table cellpadding="0" cellspacing="0" border="0" 
width="780"  background="../images/clientbackground.jpg">
                <tr>
                    <td align="left" valign="top" colspan="2"><img 
src="../images/shim.gif" alt="" width="780" height="20" border="0"></td>
                </tr>   
                <tr>
                    <td align="left" valign="top" width="20"><img 
src="../images/shim.gif" alt="" width="20" height="10" border="0"></td>
                    <td align="left" valign="top" width="750">        
       
                    <!--- Main Content --->
                       <table cellpadding="0" cellspacing="0" 
border="0">                                                     
           
                         <tr>
                             <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="50" height="10" border="0"></td>
                            <td align="center" valign="top" colspan="3">
                                <table cellpadding="0" cellspacing="0" 
border="0">
                                    <form action="login.php" 
method="post" id="MyForm" name="MyForm">                        
           
                                    <tr>
                                        <td align="center" valign="top" 
colspan="4" class="redtext"><? if ($ErrorMessage!="")
{
?><?   echo $ErrorMessage; ?><br><br><? }
  else
{
?><br><br><br> <? } ?></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="4"><img src="../images/shim.gif" alt="" width="1" height="5" 
border="0"></td>
                                    </tr>                       
         
   
                                    <tr>
                                        <td align="right" valign="top" 
class="bluetext">Outlet No:</td>
                                        <td align="left" 
valign="top"><img src="../images/shim.gif" alt="" width="10" height="1" 
border="0"></td>
                                        <td align="left" 
valign="top"><INPUT name="SiteNo" maxlength="8" size="6" value="<? echo 
$Outlet_session; ?>"></td>
                                        <td align="left" 
valign="top"><img src="../images/shim.gif" alt="" width="100" 
height="1" 
border="0"><a href="../loginintro.php" class="pagecontent"><img 
src="../images/buttons/howtoreg.gif" alt="Register" width="153" 
height="35" border="0"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="3"><img src="../images/shim.gif" alt="" width="1" height="5" 
border="0"></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
class="bluetext">Email Address:</td>
                                        <td align="left" 
valign="top"><img src="../images/shim.gif" alt="" width="10" height="1" 
border="0"></td>
                                        <td align="left" 
valign="top"><INPUT name="emailaddress" maxlength="40" size="30" 
value="<? echo trim(${"emailaddress"}); ?>"></td>
                                        <td align="left" 
valign="top"><img src="images/shim.gif" alt="" width="100" height="1" 
border="0"><a href="password.php"><img 
src="../images/buttons/forgotpassword.gif" alt="Forgot Password" 
width="153" height="35" border="0"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="3"><img src="../images/shim.gif" alt="" width="1" height="5" 
border="0"></td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top" 
class="bluetext">Password:</td>
                                        <td align="left" 
valign="top"><img src="../images/shim.gif" alt="" width="10" height="1" 
border="0"></td>
                                        <td align="left" 
valign="top"><INPUT name="password" type=password  maxlength="20" 
size="20></td>
                                        <td align="left" 
valign="top">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="4"><img src="../images/shim.gif" alt="" width="1" height="60" 
border="0"></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="4"><img src="../images/shim.gif" alt="" width="1" height="20" 
border="0"></td>
                                    </tr>
                                    <tr>
                                        <td align="center" valign="top" 
colspan="4"><INPUT type="submit" value="Login" id="button1" 
name=button1>&nbsp;<INPUT type="reset" value="Reset" id=button2 
name=button2></td>
                                    </tr>
                                    </form>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="4"><img src="../images/shim.gif" alt="" width="1" height="20" 
border="0"></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" 
colspan="4" class="bluetext">
                                            <table cellpadding="0" 
cellspacing="0" border="0">
                                                <tr>
                                                    <td align="left" 
valign="top" class="bluetext">
                                                    <u>Please Note</u>:
                                                    </td>
                                                    <td align="left" 
valign="top" class="bluetext">
                                                    <img 
src="../images/shim.gif" alt="" width="5" height="1" border="0">
                                                    </td>
                                                    <td align="left" 
valign="top" class="bluetext">
                                                    Notification of 
change of email address shall be provided to Kwikpay<br> in 
writing with 
immediate effect of the change being actioned.
                                                    </td>
                                                </tr>           
         
         
                                            </table>
                                        </td>
                                    </tr>
                                </table>   
                            </td>           
                         </tr>   
                         <tr>
                           <td align="left" valign="top"><img 
src="../images/shim.gif" alt="" width="100" height="30" border="0"></td>
                           <td align="left" valign="top" 
colspan="3"></td>
                         </tr>                               
                      </table>               
                   
Cheers
Louis
*

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--- End Message ---
--- Begin Message ---
I have a PHP file that outputs HTML to the Internet to a user.  The user also 
wants to be able to
print that output to a printer.  The user wants it formatted with page breaks 
in the proper place
and so on.  Using one PHP script to do both, short of a line to display and a 
line to print, is
there a way to do this easily or am I in a pond of alligators?  Most of the 
output is using an echo
statement.  I thought of trying to take a var and set it top echo or write 
according to what is
needed at that time.  Here is my minitest.

<?php
echo "<P>The test is starting";

$echowrite = "echo ";

$echowrite."<P>This is the first line.";

echo "<P>You should have seen the first line by now.";

?>

Did not work!  Hey I'll try anything to get this to work!  LOL

Seriously, how can this be done?

Thanks.

Mike

--- End Message ---
--- Begin Message ---
What do you mean by "it doesn't work" ?
It does (the minitest, I mean).

Luis

MikeA wrote:

I have a PHP file that outputs HTML to the Internet to a user.  The user also 
wants to be able to
print that output to a printer.  The user wants it formatted with page breaks 
in the proper place
and so on.  Using one PHP script to do both, short of a line to display and a 
line to print, is
there a way to do this easily or am I in a pond of alligators?  Most of the 
output is using an echo
statement.  I thought of trying to take a var and set it top echo or write 
according to what is
needed at that time.  Here is my minitest.

<?php
echo "<P>The test is starting";

$echowrite = "echo ";

$echowrite."<P>This is the first line.";

echo "<P>You should have seen the first line by now.";

?>

Did not work!  Hey I'll try anything to get this to work!  LOL

Seriously, how can this be done?

Thanks.

Mike




--- End Message ---

Reply via email to