Page 1 sur 1

variables et tableaux

Posté : 01 sept. 2005, 12:37
par donatello
Bonjour à tous,
j'ai un tableau a contenant un certain nombre de valeurs.
je souhaite transmettre ce tableau à une autre page via url.
J'ai fait ceci mais ça ne marche pas
var tab_a= a[];
window.location.href='page.php?tab_a=' + tab_a;
pouvez-vous m'aider?

Posté : 01 sept. 2005, 13:35
par Invité
bien entendu, le tableau a est de la forme ["1", "2"..., "i"]

Posté : 01 sept. 2005, 13:58
par Invité
ben quoi, il est si naze que ça mon post?

Posté : 01 sept. 2005, 15:42
par ouckileou
par GET ça ne marchera pas, tu dois transmettre chaque cellule de ton tableau dans des variables distinctes

Posté : 01 sept. 2005, 16:58
par Invité
ok, merci!