PHP 4.2.3 problem with submit
Posted: Sun Jan 26, 2003 9:30 am
I am having a problem with a php script I have re-used from a linux server to a windows server. I am getting the following error:
Notice: Undefined variable: submit in c:\program files\apache group\apache\htdocs\support\desk\dlogin.php on line 17
The offending line is:
Notice: Undefined variable: submit in c:\program files\apache group\apache\htdocs\support\desk\dlogin.php on line 17
The offending line is:
Code: Select all
<?php
session_start();
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe">
<title>Welcome to iTouch Europe Support</title>
</head>
<?php
if (!$submit)
{?>
// some html stuff
<table width="689" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"></td>
<td>
<form name="FormName" action="<?php echo $php_self; ?>" method="post">
<p><b><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="4">Please enter your Username and Password:</font></b></p>
<table border="0" cellpadding="2" cellspacing="2" width="271">
<tr>
<td colspan="2" bgcolor="#ff6600" width="275">
<div align="center">
<font size="2" color="white" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b>The page you have requested is available to registered user only. If you are already registered, please enter:</b></font></div>
</td>
</tr>
// more html stuff
<?php }
else
{
include('connect.php');
$connection = @mysql_connect($host, $user, $pass) or die ("Unable to connect to database");
mysql_select_db($db) or die ("Unable to select database: $db ");
//etc.
//etc.
?>