bonjour G un souci avec easyphp 1.8, le code marchait sur un server unix à l'école mais sur mon pc il déconne
donc je vous le montre
fichier Ad_CreationNews :
Ad_CreationNews_Exec :
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<form name="CréationNews" action="Ad_CreationNews_Exec.php" method="post" enctype="multipart/formdata" > <p>Rentrez une news </p> <table> <tr > <td ><b>Date de parution (format : 2007-01-15)</b></td> <td> <input type="text" name="DateParution"/> <INPUT type="hidden" name="Auteur" Value="<?php echo $_SESSION["Utilisateur"]?>"> </td> </tr> <tr > <td ><b>Date de validité (format : 2007-01-15)</b></td> <td><input type="text" name="DateValiditee"/></td> </tr> <tr > <td ><b>URL de la photo</b></td> <td><input type="file" name="URLPhoto"/></td> </tr> <tr > <td ><b>Texte concernant la photo</b></td> <Td><TEXTAREA name="TxtPhoto" rows="2" cols="50"></TEXTAREA></Td> </tr> <tr > <td ><b>Texte concernant la News</b></td> <Td><TEXTAREA name="TxtNews" rows="5" cols="50"></TEXTAREA></Td> </tr> <tr > <td ><b>Affichez ou pas ?</b></td> <td><p>Oui : <INPUT type="radio" name="Affiche" checked="true" value="1"/></p> <P>Non : <INPUT type="radio" name="Affiche" value="0"/></td></P> </tr> </table> <p> <input type="Submit" value="Enregistrer" onClick="" /> <input type="reset" value="Effacer" onClick="Initialisation()" ></p> </form>
est-ce que quelqu'un pourais m'aider sur ce problème mes recherche sur le site et google reste infructueuse surement parceque je n'arrive pas à bien deffinir ma recherche
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 <?php //appel au fichier "Connect.php" intégrant les constantes de connexion à la BDD require("../BaseDeDonnees/AccesBDDRequete.php"); $DateParution=$_POST["DateParution"]; $DateValidite=$_POST["DateValiditee"]; if (isset($_FILES["URLPhoto"]["name"])) { $UrlPhoto=$_FILES["URLPhoto"]["name"]; } else {//je passe ici en permanance $UrlPhoto="smile.jpg"; } $TextPhoto=$_POST["TxtPhoto"]; $TextNews=$_POST["TxtNews"]; $Auteur=$_POST["Auteur"] $Affiche=$_POST["Affiche"]; $query="INSERT INTO T_News(DateParution, DateValidite, UrlPhoto, TextPhoto, TextNews, Auteur, Affiche) VALUES('$DateParution', '$DateValidite', '$UrlPhoto', '$TextPhoto', '$TextNews', '$Auteur', $Affiche);"; $RetourRequeteUtilisateur=Fonc_AccesBDDRequete($query); header("location: Ad_CreationNews.php"); ?>
merci d'avence
Partager