I have a HTML document where there is a mixture of both PHP and javascript. I am only familiar with all of these. The javascript is being used only when the onsubmit is set in the <form> part of the HTML. It is being used as follows: <form onSubmit="ProcessForm" (plus other parameters in this area) </form>. Above this area is the <SCRIPT language="javascript"> some function definitions and then </SCRIPT> . There are a couple of function calls to include the ProcessForm(f) function. Will the processor allow the following inside of the ProcessForm(f) function?
include_once($_SERVER[ 'APPL_PHYSICAL_PATH'] . "File3.php"; within this javascript? Or will it ignore it as it is PHP code and not java?
The function code looks similar to this:
<SCRIPT language="javascript">
function ProcessForm(f) {
f.printer.value = getPrinter();
include_once($_SERVER['APPL_PHYSICAL_PATH'] . "File3.php";
}
</SCRIPT>
Is the above code legal? Will it process correctly?
Thanks in advance for your help.....