Problème Code PHP
Amandine
-
SkRo91 Messages postés 135 Date d'inscription Statut Membre Dernière intervention -
SkRo91 Messages postés 135 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Les loulous!, je fais appel à tous les douer du web, j'ai pour mon travail coder des pages php, une partie session, une partie identification, tout fonctionne à merveille, maintenant je cherche un moyen, une astuce (un code php) qui me permettrait d'inscrire des données dans une page, par le billet d'un formulaire.
Ma page se présente sous forme de tableau, qui constitue une liste de personnes, nom, prénom, adresse etc. J'ai mis en place un formulaire et j'aimerais pourvoir inscrire les données de celui si dans la page concernée.
Voilà comment se présente mon formulaire qui est situé dans la même page ou la liste d'utilisateur doit être.
<!-- ================= Module Enregistrement =============== -->
<br />
<legend> Enregistrement Client:</legend>
<br />
N°client : <input class="input-mini" type="text">
<p>
FTP / Host : <input type="text" placeholder="Text input">
<p>
Login : <input class="input-small" type="text" >
<p>
Password : <input type="text" placeholder="Text input">
<p>
Email : <input type="text" placeholder="Text input">
<!-- ================= Module Enregistrement ============= -->
Voilà ce que doit être inscris sur ma page, quand j'ajoute un utilisateur à mon tableau en manuelle:
Merci pour votre aide
Amandine
Les loulous!, je fais appel à tous les douer du web, j'ai pour mon travail coder des pages php, une partie session, une partie identification, tout fonctionne à merveille, maintenant je cherche un moyen, une astuce (un code php) qui me permettrait d'inscrire des données dans une page, par le billet d'un formulaire.
Ma page se présente sous forme de tableau, qui constitue une liste de personnes, nom, prénom, adresse etc. J'ai mis en place un formulaire et j'aimerais pourvoir inscrire les données de celui si dans la page concernée.
Voilà comment se présente mon formulaire qui est situé dans la même page ou la liste d'utilisateur doit être.
<!-- ================= Module Enregistrement =============== -->
<br />
<legend> Enregistrement Client:</legend>
<br />
N°client : <input class="input-mini" type="text">
<p>
FTP / Host : <input type="text" placeholder="Text input">
<p>
Login : <input class="input-small" type="text" >
<p>
Password : <input type="text" placeholder="Text input">
<p>
Email : <input type="text" placeholder="Text input">
<!-- ================= Module Enregistrement ============= -->
Voilà ce que doit être inscris sur ma page, quand j'ajoute un utilisateur à mon tableau en manuelle:
<tr>
<td>39</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
Merci pour votre aide
Amandine
1 réponse
-
Salut,
Si j'ai bien compris ton problème tu devrais faire en sorte que ton formulaire execute une requete INSERT et que dans ton tableau tu execute une requete SELECT pour interroger ta base et afficher la liste dans ton tableau.
SkRo-
Et comment puis-je faire
voila le tableau en question:
<legend> Liste Client :</legend>
<table class="table table-striped">
<thead>
<tr>
<th><img src="img/icone/glyphicons_065_tag.png"> N°client</th>
<th><img src="img/icone/glyphicons_340_globe.png"> FTP / Host</th>
<th><img src="img/icone/glyphicons_001_leaf.png"> Login</th>
<th><img src="img/icone/glyphicons_203_lock.png"> <font color="red">Mot de Passe</font></th>
<th><img src="img/icone/glyphicons_419_e-mail.png"> <font color="blue">Email</font></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><b>Mark</b></td> <!-- <input type="text" placeholder="Text input"> -->
<td>Otto</td>
<td><font color="red">@mdo</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>2</td>
<td><b>Jacob</b></td>
<td>Thornton</td>
<td><font color="red">@fat</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>3</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>4</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><b>5</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>6</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>7</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>8</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>9</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>10</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>11</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>12</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>13</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>14</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><b> 15</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>16</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
<tr>
<td>17</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>19</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>20</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>21</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>22</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>23</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>24</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><b>25</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>26</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>27</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>28</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>29</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>30</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>31</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>32</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>33</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>34</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><b>35</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>36</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>37</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>38</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td>39</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>40</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>
</tbody>
</table>
<!-- ========================= / Tableau Centrale ========================= --> -
-
-
-
-