Bonjour tout le monde !
J'ai un soucis dans un fichier que j'ai crée spécialement pour stocker mes fonctions (je m'entraine en créant un petit site), et lorsque je fais un include sur ce fichier voici mon erreur :
Voici mon fichier contenant les fonctions , j'en ai actuellement trois : une vide , une contenant juste un lien, et la dernière qui fournit un formulaire. Les voici :Fatal error: Cannot redeclare connecter() (previously declared in c:\users\sebas\downloads\logiciels\easyphp1-8\www\phpdos\site\fonctions.php:5) in c:\users\sebas\downloads\logiciels\easyphp1-8\www\phpdos\site\fonctions.php on line 2
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78 <?php function connecter(){ ?> <?php } ?> <?php function goInscription(){ ?> <a href="inscription.php">ici</a> <?php } ?> <?php function inscrire(){ ?> <form method = "POST" action = "validInscription.php"> <table> <tr> <td> <p> <label for = "nom">Entrez votre nom :</label> </p> </td> <td> <input type = "text" name = "nom" id = "nom"/> </td> </tr> <tr> <td> <p> <label for = "prenom">Entrez votre prénom :</label> </p> </td> <td> <input type = "text" name = "prenom" id = "prenom"/> </td> </tr> <tr> <td> <p> <label for = "mail">Entrez votre e-mail :</label> </p> </td> <td> <input type = "text" name = "mail" id = "mail"/> </td> </tr> <tr> <td> <p> <label for = "pass1">Entrez votre mot de passe :</label> </p> </td> <td> <input type = "password" name = "pass1" id = "pass1"/> </td> </tr> <tr> <td> <p> <label for = "pass2">Confirmez votre mot de passe :</label> </p> </td> <td> <input type = "password" name = "pass2" id = "pass2"/> </td> </tr> </table> <input type = "submit" value = "Valider"/> </form> <?php } ?>
Partager