Answer the question
In order to leave comments, you need to log in
How to transfer values of variables from php script to vbs script?
getenv('USERNAME') you need to transfer the values of these functions to the vbs script, in which there is only one function.
Function addinfo(b)
MsgBox p
End Function
<html>
<head>
<?php
ini_set('date.timezone', 'Europe/Moscow');
$user = getenv('USERNAME');
?>
<script type="text/vbscript">
p = '<?php echo $user;?>';
</script>
<script src="\\192.168.41.128\dbase\vb.vbs>
</head>
<body onload="addinfo(p)">
</html>
Answer the question
In order to leave comments, you need to log in
<body onload="addinfo('<?= getenv('USERNAME') ?>')">
...
</body>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question