hai i want to call php file in index.html how can i use it.....
iam using iframe and .php file is opening properly but when i select the value from select box and pass to next page its passing the value but the result is shown in that partucular area only. i want when i select the value and submit it . it will open new window and display the result...................
index.html code are
<script type="text/javascript">
var iframesrc="callDistblock.php"
document.write('<iframe id="datamain" src="'+iframesrc+'" width="275px" height="100px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="No"></iframe>')
</script>
Thanks
how to access php file in index.html
Moderator: General Moderators
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
-
amargharat
- Forum Commoner
- Posts: 82
- Joined: Wed Sep 16, 2009 2:43 am
- Location: Mumbai, India
- Contact:
Re: how to access php file in index.html
put target='_blank' attribute in your form tag if you are submitting using form
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: how to access php file in index.html
Thanks Amar
iam using the follwoing code
<script language="javascript">
function selfun()
{
if(document.frm.txtDistrict.selectedIndex==0)
{
alert("Pl Select District");
document.frm.txtDistrict.focus();
return false;
}
if(document.frm.txtBlock.selectedIndex==0)
{
alert("Pl Select District");
document.frm.txtDistrict.focus();
return false;
}
else
{
document.frm.action=window.open('SGSYCentreDetails.php','popuppage','width=850,scrollbars=yes,height=700,top=100,left=100');
}
}
</script>
its open in new window but select value is not passing in result page..........
iam using the follwoing code
<script language="javascript">
function selfun()
{
if(document.frm.txtDistrict.selectedIndex==0)
{
alert("Pl Select District");
document.frm.txtDistrict.focus();
return false;
}
if(document.frm.txtBlock.selectedIndex==0)
{
alert("Pl Select District");
document.frm.txtDistrict.focus();
return false;
}
else
{
document.frm.action=window.open('SGSYCentreDetails.php','popuppage','width=850,scrollbars=yes,height=700,top=100,left=100');
}
}
</script>
its open in new window but select value is not passing in result page..........