what does this mean?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
lauxen
-


Joined: 06 Feb 2005
Posts: 2
Location: holland

PostPosted: Mon Feb 07, 2005 1:20 am    Post subject: what does this mean? Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Mon Feb 07, 2005 4:50 pm    Post subject: Reply with quote

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 View user's profile Send private message
lauxen
-


Joined: 06 Feb 2005
Posts: 2
Location: holland

PostPosted: Mon Feb 07, 2005 5:02 pm    Post subject: thanks. Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group