| S'inscrire - FAQ - Membres - Marquer les forums comme lus - |
| |||||||
| Tutoriaux et Cours Retrouvez ici des tutoriaux illustrés par des captures d'écran. |
![]() |
| | LinkBack | Outils de la discussion | Modes d'affichage |
| |||
| Re : Apprendre le php avec nous du zéro jusqu'a la professionnalisme. ... Récupération des valeurs des formulaires ![]() Besoin: on veut récupérer le valeur d'un champs texte, on commence par un exemple basique et après on fait un exemple plus compliqué! On doit créer deux page, la premire peut etre HTML ou bien php et la deuxieme obligatoirement php parce qu'elle va contenir le traitement du code php. page1.html Code HTML: <html> <body> <form method="post" action="page2.php"> Nom : <input type="text" name="prenom" size="12"><br> <input type="submit" value="OK"> </form> </body> </html> page2.php Code PHP: :Calculatrice1.php Code HTML: <html> <body> <form method="post" action="page2.php"> Entier1 : <input type="text" name="n1" size="12"><br> Entier2 : <input type="text" name="n2" size="12"> <br> <label> <select name="n3"> <option selected>+</option> <option>-</option> <option>*</option> <option>/</option> </select> </label> <br> <input type="submit" value="calculer"> </form> </body> </html> Calculatrice2.php Code PHP: , on avance dans les prochaines jours, on attaquera la base de données (MySQL), les opérateurs logiques... ![]() [leçon1] |
| ||||
| Re : Apprendre le php avec nous du zéro jusqu'a la professionnalisme. Je ne fais pas aussi bien que toi ![]() ![]() ![]()
__________________ J'ai désactivé la messagerie privée. Prière de me laisser un message sur mon profil |
| ||||
| Re : PHP-Leçon 2: récupérations des valeurs des formulaires + exo calculatrice ici ya une introduction au php ca peut aider http://www-desi.iro.umontreal.ca/~di...es/4-PHP.4.pdf |
| |||
| http://www.sauronz.com/manuales/Eboo...evelopment.pdf http://www.sauronz.com/manuales/ORei...Y.NEW.YEAR.chm http://www.sauronz.com/manuales/Php%205%20And%20Mysql%20Bible%20-%20From%20The%20O'Reilly%20Anthology.pdf http://www.sauronz.com/manuales/Secu...0-%20wiley.pdf http://www.sauronz.com/manuales/Tall...20completo.pdf http://www.sauronz.com/manuales/Apre...s.Mar.2006.pdf http://lab.lpicn.org/pub/books/Wiley...plications.pdf http://lab.lpicn.org/pub/books/Wiley...plications.pdf http://lab.lpicn.org/pub/books/Sams%...%2024Hours.chm http://lab.lpicn.org/pub/books/Sams%...rogramming.chm http://lab.lpicn.org/pub/books/Sams%...%20Edition.chm http://lab.lpicn.org/pub/books/Que%2...%20Scratch.chm http://lab.lpicn.org/pub/books/Premi...%20Edition.chm http://lab.lpicn.org/pub/books/Peach...rt%20Guide.chm http://lab.lpicn.org/pub/books/New%2...0and%20PHP.chm bref ceci est suffisent http://lab.lpicn.org/pub/books/PHP%2...%20Dummies.pdf mate7rmouch rwe7kom |
| ||||
| AW: PHP-Leçon 2: récupérations des valeurs des formulaires + exo calculatrice assalam 3aleykom I'm a lazy student of you PHP coourse, but I had a question and I didn't found where to put it... is it possible to design a persistent form? my vision is to put something like a game of "des mots croisé" ou "Sudoku" in a forum like this, so that all the users participate and fill it up until the end, that means, that if a user fill a bracket, then it stays filled and the next player could continue playing without modifying what the previous players filled. may be it already exists, I can imagine some kind of forms that save the actuall inputs and use it in the next session. wa salam |
| |||
| Re : AW: PHP-Leçon 2: récupérations des valeurs des formulaires + exo calculatrice Envoyé par Ram-Z
salam, Yes it's possible , Php code is executed on server, so you can save the place of words for exemples.. I don't don't know if this is already existe, but what's sure is that it's possible, with a database... You can start and I will help you if you have somes difficulties ![]() |
| ||||
| AW: PHP-Leçon 2: récupérations des valeurs des formulaires + exo calculatrice nothing is impossible, something like this exist as a game but it don't make use of persistens on the web, but here we are able to do it, a GUI that accepts entries and stores them in a database, use them in the next session and at the end compare them to the right values. sounds good but the implementation isn't so I keep playing alone: http://sudoku.zeit.de/sudoku/kunden/die_zeit/ |
![]() |
| Outils de la discussion | |
| Modes d'affichage | |
| |
Copyright ©2005 - 2008, Asslema Tunisie. Édité par : vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 |