Sending a form to an iframe.

D

Defacta

Hi !

How can I send a form in an iframe ?
My code looks like that:
<iframe name="Main_IF" id="Main_IF" width="686" height="440"
src="iframe_login.php"> </iframe>

<form name="login" action="Mon Iframe" method=post>
<label for="password">Le mot de passe:</label>
<input type="password" name="password" id="password"
class="default-field"/>
<input type="hidden" name="choosen_lang" value="">
</form>

Thanks,
Vincent.
 
T

Thomas 'PointedEars' Lahn

Defacta said:
How can I send a form in an iframe ?
My code looks like that:
<iframe name="Main_IF" id="Main_IF" width="686" height="440"
src="iframe_login.php"> </iframe>

<form name="login" action="Mon Iframe" method=post>
[...]
</form>

1. This question required only basic HTML knowledge. RTFM, STFW.

2. This question would have been on-topic in
comp.infosystems.www.authoring.html.

3. Use the `target' attribute of the `form' element:

<form ... target="Main_IF">
...
</form>

4. Your markup maybe is not Valid:

http://validator.w3.org/


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,294
Latest member
LandonPigo

Latest Threads

Top