🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.php
Article #20

Probleme de variable

#20
From: thierry
Date: Thu, 11 Jul 2002 16:13
24 lines
1891 bytes
Probleme de variable

Excusez moi si la question vous parait toute simple mais je suis un grand
debutant :o)

voila j aimerai utiliser une variable dans un formulaire qui a �t� trouv�
dans une base de donn�e par un random()

 $userEnCours=rand(0,$nbUser-1);
 $req=mysql_query('SELECT * FROM user WHERE idUser= \''.$userEnCours.'\' ');
 $user=mysql_fetch_array($req,MYSQL_ASSOC);

lorsque j appui sur le bouton pour faire submit() le formulaire s appelle
lui meme (c'est fait expr�s )

je n'arrive pas a retrouver la valeur de la variable $user avant de
repouvoir faire un random sur la table user

Pour resumer , la question est :
Comment communiquer la valeur d une variable definit dans un formulaire
lorsque l on envoit le signal submit?


Merci d avoir essay� de me comprendre :o))
Technical Details
Message-ID: <agk8tm$80a$2@wanadoo.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!wanadoo.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 10701e,c07ab3549b70206b,start
X-Google-Attributes: gid10701e,public
X-Google-Thread: 1156bd,c07ab3549b70206b,start
X-Google-Attributes: gid1156bd,public
X-Google-ArrivalTime: 2002-07-11 08:40:39 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!wanadoo.fr!not-for-mail
From: "thierry" <thierry.laurendin@libertysurf.fr>
Newsgroups: comp.lang.php,cz.comp.lang.php
Subject: Probleme de variable
Date: Thu, 11 Jul 2002 18:13:47 +0200
Organization: Wanadoo, l'internet avec France Telecom
Lines: 26
Message-ID: <agk8tm$80a$2@wanadoo.fr>
NNTP-Posting-Host: aneuilly-103-1-4-245.abo.wanadoo.fr
X-Trace: wanadoo.fr 1026402038 8202 80.13.221.245 (11 Jul 2002 15:40:38 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 11 Jul 2002 15:40:38 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700