<input type="button" value="Button 1" onclick="javascript:document.formname.target = 'frame1';document.formname.submit();">
<input type="button" value="Button 2" onclick="javascript:document.formname.target = 'frame2';document.formname.submit();"> On Thu, 2003-07-03 at 12:02, Dan Joseph wrote: > Oh, yeah, that is correct. You'd need to use the <button> tag and put some > javascript in them to target the frames. I'm not up on the javascript > enough though, check javascript.internet.com for more information. > > -Dan Joseph > > > -----Original Message----- > > From: Grant Rutherford [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 03, 2003 12:03 PM > > To: Dan Joseph > > Cc: PHP Mailing List > > Subject: RE: [PHP] Redirect to a different frame... > > > > > > Hi there, > > > > Thanks for your response. I understand that I can specify a target in > > the form tag. However, if I were to do that both buttons would have to > > go to the same frame. (I think?) > > > > If I could specify the target for each submit button, that would work > > perfectly. Also, if I could have the same input fields shared between > > two forms (one for each target destination). However, I don't think > > that either of these is an option in regular HTML. > > > > Thanks, > > Grant > > > > > > On Thu, 2003-07-03 at 10:41, Dan Joseph wrote: > > > Hi, > > > > > > > I was wondering if there is a way to use the header function in php to > > > > redirect the browser's output to a different frame. > > > > > > > > Specifically, I have a form on frame A which has two submit > > buttons. I > > > > would like one to submit the data in the form to a page which > > will load > > > > in frame A, and the other to submit the data to the same page > > which will > > > > load in frame B. > > > > > > in your <form> tag, you can put target=framename, example: > > > > > > <form method=post name=framename action=file.php > > target=framethree> > > > > > > Anything submitted from that frame will target the > > specified frame. No > > > fancy PHP needed, unless you want to make the target dynamic. > > > > > > -Dan Joseph > > -- > > Grant Rutherford > > Iders Incorporated > > 600A Clifton Street > > Winnipeg, MB Canada R3G 2X6 > > http://www.iders.ca > > tel: 204-779-5400 ext 36 > > fax: 204-779-5444 > > > > This message is intended solely for the use of the designated > > recipient(s) and their appointed delegates, and may contain > > confidential information. Any unauthorized disclosure, > > copying or distribution of its contents is strictly prohibited. > > If you have received this message in error, please destroy it > > and advise the sender immediately by phone, email or facsimile. > > -- Adam Voigt ([EMAIL PROTECTED]) Linux/Unix Network Administrator The Cryptocomm Group -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php