POST et Frame

Eléphanteau du PHP | 13 Messages

07 mars 2006, 15:36

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]

Avatar du membre
ViPHP
ViPHP | 3008 Messages

07 mars 2006, 15:39

Tu as essayé ceci ?

Code : Tout sélectionner

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

Eléphant du PHP | 312 Messages

07 mars 2006, 15:41

Sinon il y a cette discussion qui traite de la même chose :
http://www.phpfrance.com/forums/voir_sujet-15479.php

Eléphanteau du PHP | 13 Messages

07 mars 2006, 15:55

Ca marche comme ça :


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

Merci à vous...