Page 1 sur 1

POST et Frame

Posté : 07 mars 2006, 15:36
par allweb
Bonjour

J'ai un formulaire dans un frame (je sais c'est pas une bonne idée !)

Comment peut on selon vous le poster hors du frame ?

Si j'écris :

Code : Tout sélectionner

<form name="form" method="post" action="../direction.php target='_parent'">
Ca ne marche évidemment pas ....

PS j'ai une variable à passer (choix par bouton radio)
Grand merci[/code]

Posté : 07 mars 2006, 15:39
par charabia
Tu as essayé ceci ?

Code : Tout sélectionner

<form name="form" method="post" action="../direction.php" target="nom_de_ta_frame">

Posté : 07 mars 2006, 15:41
par Hermès
Sinon il y a cette discussion qui traite de la même chose :
http://www.phpfrance.com/forums/voir_sujet-15479.php

Posté : 07 mars 2006, 15:55
par allweb
Ca marche comme ça :


<form name="form" method="post" target="_parent" action="../direction.php">

Merci à vous...