If i 'GET' some incoming vars i want to parse the incoming data with VBscript,
for ex,
Isn't giving me any errors but not producing the XML file, also as i said in the title, how do i access the u variables outside the php tags ?PHP Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<body>
<?php
$u= $HTTP_GET_VARS['p'];
?>
<script type="text/vbscript">
Const fsoForWriting = 2
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Open the text file
Dim objTextStream
Set objTextStream = objFSO.OpenTextFile("myXML.xml", fsoForWriting, True)
'Write Data
objTextStream.WriteLine "<?xml version=" & chr(34) & "1.0" & chr(34) & " encoding=" & chr(34) & "ISO-8859-1" & chr(34) & "?>"
objTextStream.WriteLine "<table>"
objTextStream.WriteLine " <ID>" & u & "</FriendID>"
objTextStream.WriteLine "</table>"
'Close the file and clean up
objTextStream.Close
Set objTextStream = Nothing
Set objFSO = Nothing
</script>
</body>
</html>
If i put as msgbox u in the VBscript, its empty ?




Reply With Quote