La ligne suivante ne fonctionne pas car c'est du "pur" HTML (la variable PHP n'est pas interprétée) <a href ="rep.php?variable=$change">Transmission variable</a>
Il faut donc insérer du code PHP pour afficher (générer) le contenu de ta variable en HTML <a href ="rep.php?variable=<? echo $change; ?>">Transmission variable</a> Bien à toi, Alec -----Original Message----- From: Alain Barthélemy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 5:34 PM To: Liste Linux Subject: [linux] php transmission paramètres via URL? Bonjour, Question PHP Je sais déjà que pour faire un transfert de variables via un URL, il faut utiliser: <a href ="rep.php?variable=string">Cliquez ici</a> variable devient $variable à la réception et string est "un_string" Je ne trouve cependant aucun RTFM ou manuel ou HowTo pour m'éclairer sur les différentes façons (s'il y en a?) de transmettre des variables ou des paramètres de cette façon. Par exemple: 1) comment transmettre une variable (pas un string) Je crée donc la variable $change que je définis avec $change = "un_string" et je voudrais transmettre cette variable à la page Web rep.php. <a href ="rep.php?variable=$change">Transmission variable</a> ne fonctionne pas naturellement 2) sur unixtech.be, je peux lire: <a href="banners.php?opt=click&bid=42" > ou <a href="user.php?op=userinfo&uname=alain> Ces lignes sont interprétées. Il semble que c'est ainsi qu'une variable est transmise (alain dans uname=alain doit être une interprétation de uname=$votre_nom). Quel est le rôle de *&* (&) dans user.php?op=userinfo&uname=alain ? Tout howto qui explique tout cela est le bienvenu. J'espère avoir été assez clair. Merci -- Alain Barthélemy [EMAIL PROTECTED] http://bartydeux.be _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/linux@lists.unixtech.be IRC: efnet.unixtech.be:6667 - #unixtech Notice: This e-mail and any attachments thereto may contain information, which is confidential and/or protected by intellectual property rights, and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Although we attempt to sweep e-mail and attachments for viruses, it does not guarantee that either is virus-free and we accept no liability for any damage sustained as a result of viruses. Thank you for your co-operation. _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/linux@lists.unixtech.be IRC: efnet.unixtech.be:6667 - #unixtech