Page 1 sur 1

espace membre trait_inscription

Posté : 17 juin 2014, 03:11
par sandaf
bonjour
j'ai toujour le problem sur le formulaire inscription espace membre
l'erreur est en bas:
( ! ) Notice: Undefined index: inscrit in C:\wamp\www\test\membres\trait-inscription.php on line 64


( ! ) Notice: Undefined index: pseudo in C:\wamp\www\test\membres\trait-inscription.php on line 64

( ! ) Notice: Undefined index: inscrit in C:\wamp\www\test\membres\trait-inscription.php on line 64

voici l'extrait du code:
<?php
if($_SESSION['inscrit'] == $_POST['pseudo'] && trim($_POST['inscrit']) != '')
{
	$informations = Array(/*Déjà inscrit (en cas de bug...)*/
						true,
						'Vous êtes déjà inscrit',
						'Vous avez déjà complété une inscription avec le pseudo <span class="pseudo">'.htmlspecialchars($_SESSION['inscrit'], ENT_QUOTES).'</span>.',
						' - <a href="'.ROOTPATH.'/index.php">Retourner à l\'index</a>',
						ROOTPATH.'/membres/connexion.php',
						5
						);
	require_once('../information.php');
	exit();
}
?>


Re: espace membre trait_inscription

Posté : 17 juin 2014, 07:38
par moogli
Salut,

Tu utilise des index de tableau sans savoir s'il existe.
La ton formulaire n'est pas posté donc tu as des erreurs.

Pour éviter cela utilise empty


@+