Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
2 HTML Forms split by 1 Frame
Old 04-18-2005, 01:39 PM 2 HTML Forms split by 1 Frame
Junior Talker

Posts: 3
Trades: 0
Please advise?

I have 2 HTML forms split by a single frame. In other words 2.html and 2a.html

Now is is possible that when the submit button is pressed on one of the forms, all data from both HTML forms can be Posted to my .php file?

If this si possible, can some one please show me with some code to demonstrate. Thanks.

h.ghelani1@rbh.nthames.nhs.uk
hg363 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-18-2005, 02:56 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
well if it's 2 separate forms you could do it wit hJavascript like this:

Index (framed) File:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
	</head>

	<frameset cols="*,*">
		<frame id="Frame1" name="Frame1" src="frame1.html" noresize>
		<frame id="Frame2" name="Frame2" src="frame2.html" noresize>
		<noframes>

			<body bgcolor="#ffffff">
				<p></p>
			</body>

		</noframes>
	</frameset>

</html>
Frame 1:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
	</head>

	<body bgcolor="#ffffff">
		<form id="FormName" action="http://www.siriusad.com" method="get" name="FormName" onsubmit="top.frames['Frame2'].document.FormName.submit();">
			<input type="submit" name="submitButtonName">
		</form>
		<p></p>
	</body>

</html>
Frame 2:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
	</head>

	<body bgcolor="#ffffff">
		<form id="FormName" action="http://www.jerseymikes.com" method="get" name="FormName" onsubmit="top.frames['Frame1'].document.FormName.submit();">
			<input type="submit" name="submitButtonName">
		</form>
		<p></p>
	</body>

</html>
Or something Like that... I assume the forms are going to 2 different scripts? Why not just combine the 2 forms into 2 and make the script handle both?

Last edited by funkdaddu; 04-18-2005 at 03:01 PM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to 2 HTML Forms split by 1 Frame
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13408 seconds with 12 queries