473,385 Members | 1,379 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.

getting variables from iframe

258 100+
Hi
I have a form which sends some variables. but i need to have an IFRAME inside this form which has its own variables.
My question is if i can get this IFRAM's variables into my main page ( parent )


here is the first file 1.php
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. <form action="1.php" method="post">
  4.  
  5.    <input type="text" name="text1">
  6.    <ifram src="2.php" width="100" height="100"></iframe>
  7.    <input type="submit" value="submit">
  8.  
  9. </form>
  10.  
  11. <?PHP
  12.    print $text1."--".$text2;
  13. ?>
  14.  
  15.  
and then the file inside the IFRAME 2.php

Expand|Select|Wrap|Line Numbers
  1.  
  2. <input type="text" name="text2">
  3.  
  4.  

when user submits the form only the text written in the first box will be shown...
is it possible to get the value of the second box? (text2)

Thanks
Sep 17 '07 #1
0 1281

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Frédéric Mayot | last post by:
Hi, I have an HTML page like this : --- test.html <html> <body> <form> <iframe id="frametest" name="frametest" src="iframe.html"></iframe> <select multiple...
0
by: John Wood | last post by:
I have an ASP script in which I want to control the screen as two frames If I use a FRAMESET this works fine but the frame geometry is fixed the script uses POST and hidden fields to transfer the...
7
by: Lorenzo Vaina | last post by:
Can i get the content of an URL and put it in a variable using javascript? I want js execute different operations varying a file that is on internet. Thanks, regards.
1
by: Martin | last post by:
There seems to be some strange behaviour when trying to get the scrollHeight and scrollTop of an iframe in IE6. I have tried several ways of getting these values when the iframe is written into...
5
by: Adrian | last post by:
Is there a way (understandably non-portable) to get the call stack from within a function? That is, assuming the application has been compiled with symbols, get the list of calling function names...
0
by: Van Steenbergen Jan | last post by:
We have a asp.net application that holds data in session variables(items). The admin page of the application has a iframe. In this iframe we load different pages(.aspx) . The pages resides in the...
11
by: Rolf Rosenquist | last post by:
I have a website with several input forms over a number of pages. The information that the user gives is following through the pages as session variables. It has been working good for two years. ...
1
by: acehigh1983 | last post by:
hi i have been writting some HTML code and i have a web page that sends a username and password via a form post (can also use get) to another HTML page. I need to get the variables out of the query...
2
by: mkhines | last post by:
I'm having trouble figuring out the proper way to pass this variable in with javascript alone. I'm not used to not being able to use jsp and all the love that is in that. Obviously I know...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.