Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending data from frame to another html page

Status
Not open for further replies.

daka94

Programmer
Apr 27, 2001
33
US

Hai,
I had one html page.that page contain two frames.
in one frame i had a form.when i submit the form ,i want to open a new html page and
the
data has to move to new page.
when i am trying this,the new page is opening in the same location of the frame and
data is not moving to new page.please help me how to solve this problem.
thank u
 
Well, i think this might do the trick:

In the page with the form:

<form name = &quot;myForm&quot; method = &quot;GET&quot; action = &quot;frame2.asp&quot; target = &quot;myWin&quot;>
<INPUT type=&quot;text&quot; id=text1 name=text1>
<INPUT type=&quot;submit&quot; value=&quot;Submit&quot; id=submit1 name=submit1>

</form>

Then, in the page that processes the form, frame2, I used this code to test it out:

Results:
<% =Request(&quot;text1&quot;) %>

The target attribute &quot;myWin&quot; in the form tag above doesn't refer to anything in particular, but it does force a new page to open.

Good luck!

:)

Julie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top