I have a page name index.php loaded on firefox.
After clicking on a link on page index.php, a new window name addname.php loaded.
addname.php contains a form with few field.
How can i make in such that after clicking add button on addname.php, the info automatically displayed on index.php without me clicking on the refresh button.
Refresh Main Screen
Moderator: General Moderators
- php3ch0
- Forum Contributor
- Posts: 212
- Joined: Sun Nov 13, 2005 7:35 am
- Location: Folkestone, Kent, UK
You could use some javascript
Code: Select all
<HTML><HEAD></HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function openChild(file,window) {
childWindow=open(file,window,'resizable=no,width=200,height=400');
if (childWindow.opener == null) childWindow.opener = self;
}
//--></SCRIPT>
<BODY>
<FORM NAME="parentForm">
<INPUT TYPE="button" VALUE="Open child" onClick="openChild('examplejs2.html','win2')">
<BR><INPUT NAME="pf1" TYPE="TEXT" VALUE="">
<BR><INPUT NAME="pf2" TYPE="TEXT" VALUE="">
</FORM></BODY></HTML>