Coucou
Inutile de bavarder inutilement, voila mon code
:
Code :
- <?php
- function aff_champs_vides($champ)
- {
- $champ = isset($_GET[''.$champ.'']);
- if(!$champ or $champ=='')
- echo('');
- else
- if($_GET[''.$champ.''] == 1)
- {
- echo('style="background-color:#FF0000"');
- }
- }
- ?>
|
et j'appele cette fonction comme cela :
<textarea rows="12" name="msg" cols="60" <?php aff_champs_vides(msg); ?>></textarea>
![:pfff: :pfff:](https://forum-images.hardware.fr/icones/smilies/pfff.gif)
Message édité par KdZ' le 23-12-2003 à 12:01:59
---------------
GENERATION MOBILES : Imprimantes GSM & logos/sonneries/jeux