View previous topic :: View next topic |
Author |
Message |
lauxen -
Joined: 06 Feb 2005 Posts: 2 Location: holland
|
Posted: Mon Feb 07, 2005 1:20 am Post subject: what does this mean? |
|
|
Notice: Undefined index: sesUser in C:\Program Files\Abyss Web Server\cgi-bin\login.php on line 29
Notice: Undefined index: submit in C:\Program Files\Abyss Web Server\cgi-bin\login.php on line 46
this its what i get to see tho my scripts are working its very annoying.
for in case i will saw here down under my script
<?
## sessie starten ##
session_start();
## instellingen ##
$confWachtwoord = '12345678'; //het login password
$confGebruiker = 'webmaster'; //de login username
$confBestand= 'C:\Program Files\Abyss Web Server\cgi-bin\login.php';
## login formulier ##
$htmlForm = '<form action="' . $confBestand . '" method="POST">
<table border="1" width="500" cellpadding="2" cellspacing="0">
<tr>
<td width="160"><b>Gebruikersnaam:</b></td>
<td><input type="text" name="log_user" /></td>
</tr>
<tr>
<td width="160"><b>Wachtwoord:</b></td>
<td><input type="password" name="log_pass" /></td>
</tr>
<tr>
<td width="160"> </td>
<td><input type="submit" name="submit" value="Login..." /></td>
</tr>
</table>
</form>';
## beveiligde pagina ##
if($_SESSION['sesUser'] == $confGebruiker AND $_SESSION['sesPass'] == $confWachtwoord)
{
## uitloggen ##
if($_GET['a'] == 'exit')
{
session_destroy();
echo 'Je bent succesvol uitgelogd, <a href="' . $confBestand . '">verder</a>.';
}
else
{
echo 'je bent ingelogd.<hr />
- <a href="?a=exit">uitloggen</a> .. <a href="http://www.fotoarchiefdewolden.nl/start/adminn/scherm.php" target="kip">uploaden</a>... <A HREF="http://www.fotoarchiefdewolden.nl/helppiee/admin/index.php" target="kip">FAQ</a>...<a href="http://www.fotoarchiefdewolden.nl/start/newsletter/admin/newsletter.php?action=begin" target="kip">nieuwsletter</a>...................Watermerk:<a href="http://www.fotoarchiefdewolden.nl/ja.php" target="kip">ja</a>....<a href="http://www.fotoarchiefdewolden.nl/nee.php" target="kip">nee</a>...........||.........<a href="http://www.fotoarchiefdewolden.nl/imode/pic/watisertedoen.php" target="kip">imode</a><hr><iframe name="kip" src="http://www.fotoarchiefdewolden.nl/start/adminn/scherm.php" height="80%" width="100%"></iframe>';
}
}
else
{
## inloggen ##
if($_POST['submit'])
{
$logUser = trim($_POST['log_user']);
$logPass = trim($_POST['log_pass']);
if(empty($logUser) OR empty($logPass))
{
echo 'Vul een gebruikersaam / wachtwoord combinatie in, <a href="' . $confBestand . '">terug</a>.';
}
elseif($logUser != $confGebruiker OR $logPass != $confWachtwoord)
{
echo 'De gebruikersnaam / wachtwoord combinatie is niet juist, <a href="' . $confBestand . '">terug</a>.';
}
else
{
## sessie aanmaken ##
$_SESSION['sesUser'] = $logUser;
$_SESSION['sesPass'] = $logPass;
echo 'Je bent succesvol ingelogd, <a href="' . $confBestand . '">verder</a>.';
}
}
else
{
echo $htmlForm;
}
}
?> |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Mon Feb 07, 2005 4:50 pm Post subject: |
|
|
Please search next time:
TRUSTpunk wrote: | These are Notices , since we get so many of the same posts every day I might as well explain how to turn these Notices off , open your php.ini file in C:\Windows or C:\Winnt depending on your OS and do this.
Find:
Code: | error_reporting = E_ALL; |
change this line to
Code: | error_reporting = E_ALL & ~E_NOTICE; |
|
_________________ Olly |
|
Back to top |
|
 |
lauxen -
Joined: 06 Feb 2005 Posts: 2 Location: holland
|
Posted: Mon Feb 07, 2005 5:02 pm Post subject: thanks. |
|
|
Dear Olly86
I did that before but was not working fine,
thats why my asking for help.
but after somewhere at the forum i found a sulution ;-)
i am not sure its a good one but its working fine here at the moment
just this code in the source above:
error_reporting(E_ALL & ~E_NOTICE);
ini_set("display_errors", 1); |
|
Back to top |
|
 |
|