Probleme de transmission de variables
Résolu/Fermé
lussiane
-
13 sept. 2010 à 01:05
niconovice
niconovice
- Messages postés
- 954
- Date d'inscription
- lundi 10 novembre 2008
- Statut
- Membre
- Dernière intervention
- 3 mars 2014
A voir également:
- Probleme de transmission de variables
- [CCM] Transmission variable en PHP ✓ - Forum - PHP
- [php/mysql] transmission variable ✓ - Forum - PHP
- Transmission de variables via un header(location) ✓ - Forum - PHP
- Probleme de transmission de variables ✓ - Forum - Webmaster
- {MYSQL} probleme transmission de variables ✓ - Forum - MySQL
3 réponses
niconovice
13 sept. 2010 à 01:25
- Messages postés
- 954
- Date d'inscription
- lundi 10 novembre 2008
- Statut
- Membre
- Dernière intervention
- 3 mars 2014
13 sept. 2010 à 01:25
salut je suis pas sur d'avoir compris mais tu définis tes variables au début et ensuite tu les insères dans tes value="" pas étonnant qu'elles soit affichées ?!
niconovice
Modifié par niconovice le 13/09/2010 à 01:47
- Messages postés
- 954
- Date d'inscription
- lundi 10 novembre 2008
- Statut
- Membre
- Dernière intervention
- 3 mars 2014
Modifié par niconovice le 13/09/2010 à 01:47
franchement je vois pas trop ou tu veux en venir avec ton script mais tu pourrais faire comme ça déjà c'est largement plus propre:
<?php $prixmax = 0 ; $prix = 0 ; $prixmin = 0 ; $prixmoy = 0 ; if(isset($_GET['prix'])) { $prix=$_GET['prix']; } if(isset($_GET['prixmax'])) { $prixmax=$_GET['prixmax']; } if(isset($_GET['prixmin'])) { $prixmin=$_GET['prixmin']; } if(isset($_GET['prixmoy'])) { $prixmoy=$_GET['prixmoy']; } if(isset($_GET['nb_prod'])) { $nb_prod=$_GET['nb_prod']; } ?>