how to access php file in index.html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

how to access php file in index.html

Post by manojsemwal1 »

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
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

Post by amargharat »

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

Post by manojsemwal1 »

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..........
Post Reply