Erreur de synthaxe if then elseif else end if
Résolu
yomghi
-
yomghi Messages postés 3 Statut Membre -
yomghi Messages postés 3 Statut Membre -
Bonjour et bonne année,
Voilà j'ai un petit qui m'a l'air tout simple mais impossible de trouver l'erreur. Il faut reconnaître que je ne suis qu'un débutant en asp, mais quand mêm ç m'agace ! Si quelqu'un peut m'aider. Merci.
Le code de ma page est :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Ma fiche personnelle</title>
</head>
<!--#include file="openconnection.inc"-->
<!--#include file="6maficheperso.inc"-->
<body>
<% if videntifiant_clt="" then response.write("Erreur de pseudonyme.")
elseif (vnumalea_clt=vauthentif_log and vmdp_clt<>vmdp_log) then response.write("Erreur de mot de passe.")
elseif vnumalea_clt<>vauthentif_log and vmdp_clt=vmdp_log then response.write("Erreur de code d'authentification.") ,
elseif vnumalea_clt<>vauthentif_log and vmdp_clt<>vmdp_log then response.write("Vous n'avez pas été reconnu. Vous pouvez recommencer."),
else vnumalea_clt=vauthentif_log and vmdp_clt=vmdp_log then response.write("je suis" & vnom_clt)
end if %>
</body>
<!--#include file="closeconnection.inc"-->
</html>
L'erreur de synthaxe point sur elseif et c'est :
Erreur de compilation Microsoft VBScript error '800a0401'
Fin d'instruction attendue
/iisHelp/common/500-100.asp, line 11
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^
Erreur de compilation Microsoft VBScript error '800a03ea'
Erreur de syntaxe
/CONTACT/Rep_contact/VF/6maficheperso.asp, line 14
elseif (vnumalea_clt=vauthentif_log and vmdp_clt<>vmdp_log) then response.write("Erreur de mot de passe.")
^
Voilà j'ai un petit qui m'a l'air tout simple mais impossible de trouver l'erreur. Il faut reconnaître que je ne suis qu'un débutant en asp, mais quand mêm ç m'agace ! Si quelqu'un peut m'aider. Merci.
Le code de ma page est :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Ma fiche personnelle</title>
</head>
<!--#include file="openconnection.inc"-->
<!--#include file="6maficheperso.inc"-->
<body>
<% if videntifiant_clt="" then response.write("Erreur de pseudonyme.")
elseif (vnumalea_clt=vauthentif_log and vmdp_clt<>vmdp_log) then response.write("Erreur de mot de passe.")
elseif vnumalea_clt<>vauthentif_log and vmdp_clt=vmdp_log then response.write("Erreur de code d'authentification.") ,
elseif vnumalea_clt<>vauthentif_log and vmdp_clt<>vmdp_log then response.write("Vous n'avez pas été reconnu. Vous pouvez recommencer."),
else vnumalea_clt=vauthentif_log and vmdp_clt=vmdp_log then response.write("je suis" & vnom_clt)
end if %>
</body>
<!--#include file="closeconnection.inc"-->
</html>
L'erreur de synthaxe point sur elseif et c'est :
Erreur de compilation Microsoft VBScript error '800a0401'
Fin d'instruction attendue
/iisHelp/common/500-100.asp, line 11
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^
Erreur de compilation Microsoft VBScript error '800a03ea'
Erreur de syntaxe
/CONTACT/Rep_contact/VF/6maficheperso.asp, line 14
elseif (vnumalea_clt=vauthentif_log and vmdp_clt<>vmdp_log) then response.write("Erreur de mot de passe.")
^
Configuration: Windows XP Internet Explorer 6.0
A voir également:
- Erreur de synthaxe if then elseif else end if
- Iptv erreur de lecture - Forum TV & Vidéo
- Erreur 0x80070570 ✓ - Forum Windows 10
- Erreur s3 bbox - Forum Bbox Bouygues
- Erreur de lecture du canal - IPTV - Forum TV & Vidéo
- Erreur 4101 - Forum Carte graphique
Merci encore