Posted:
Wed Feb 20, 2002 7:50 am (22 years, 2 months ago)
My web site has frames, and i have put a form on it, i need that when the user press he submit button, the variables on it were sent to two different pages, one in mainFrame and the other one in leftFrame (for example). Is any way of doing it?
death2all Junior WebHelper
Joined: 12 Feb 2002
Posts: 8
Location: Ninth Hell
Posted:
Tue Feb 26, 2002 2:31 pm (22 years, 1 month ago)
Try assigning a javascript function call to the onclick event of the submit button and then in the javascript function mess around with the variables and elements to do whatever you want
Javascript Example:
Code:
function button_click()
{
document.mainFrame.location = 'http://somewhere/phpscript1.php?var='+document.text1.value;
document.leftFrame.location = 'http://somewhere/phpscript2.php?var='+document.text2.value;
}
I have not tested the code so I don't know it's effects. Mess with it and tell me.
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.