Hi. We're trying to run some javascript in a page and have PHP pick up the return value. It seems like this isn't going to work if we do
<script>
</script>
some html
<? blah ?>
But is it possible to run the javascript from inside PHP tags, and capture the return value in a variable?
ANY advice is extremely helpful. Thanx!
Here is the code, and we need to get the value of gUser:
<SCRIPT LANGUAGE=JavaScript>
<!--
var gUser;
function doOnLoad() {
gUser = window.dialogArguments;
// document.writeln("User: " + gUser);
}
function doOnChange() {
document.all["btnSubmit"].enable();
}
// -->
</SCRIPT>
Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
<script>
</script>
some html
<? blah ?>
But is it possible to run the javascript from inside PHP tags, and capture the return value in a variable?
ANY advice is extremely helpful. Thanx!
Here is the code, and we need to get the value of gUser:
<SCRIPT LANGUAGE=JavaScript>
<!--
var gUser;
function doOnLoad() {
gUser = window.dialogArguments;
// document.writeln("User: " + gUser);
}
function doOnChange() {
document.all["btnSubmit"].enable();
}
// -->
</SCRIPT>
Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com