Results 1 to 6 of 6

Thread: Do you have access to php vars outside the tags ?

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Do you have access to php vars outside the tags ?

    If i 'GET' some incoming vars i want to parse the incoming data with VBscript,
    for ex,

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

    If i put as msgbox u in the VBscript, its empty ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width