473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sending a form to an iframe.

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.
Nov 25 '07 #1
2 1416
Defacta wrote:
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
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Nov 25 '07 #2
Thomas 'PointedEars' Lahn said the following on 11/25/2007 9:53 AM:
Defacta wrote:
>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>
Due to [2.], doesn't that make [3.] off topic here?

People don't have to ask in the right group, someone will answer them
anyway.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Halldór Ísak Gylfason | last post by:
In my application I have an iframe that is empty (and not visible) initially, however when a user presses a button a form is programmatically submitted and the target is set to the IFrame. I...
3
by: John Chen | last post by:
I need to use iframe to create a floating frame. But the contents in the iframe is not a external html file. Rather, it will be dynamically created by jsp. How can I set the src attribute to a URL...
10
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
2
by: superfreaker | last post by:
Ok, I've been at this two days now and have scoured the group for help to no avail. I have a main web page that contains a form and an iframe. I need to submit the form and set the iframe source...
1
by: acemtp | last post by:
Hello, Do you know a dynamic way to send 10kb of text or more using an iframe? I tried to do that with by creating, in javascript, a dynamic iframe, then create a form into this iframe and put...
4
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to...
1
by: gzannd | last post by:
I have a problem with submitting a form to a PHP page through a dynamically created IFRAME in IE7. This code works fine in Firefox. However, IE7 submits an empty form--the correct PHP page is...
2
by: dan07 | last post by:
Language used: Javascript Application using iFrame: Microsoft CRM 3.0 form Is there a generic way for an iFrame to send a variable to a remote website form? I need to be able to open up the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.