Vbscript in a PHP Page

How is it possible to pass a variable from php script to a vb script in the same page, bit of a problem when vbscript doesn't work with session variables.

Comments

  • : How is it possible to pass a variable from php script to a vb script
    : in the same page, bit of a problem when vbscript doesn't work with
    : session variables.
    :

    I dont want 2 sound rude but may u rephrase ur problem. I would suggest u post ur snippet as well.

    Is this what u want?

    [code][color=Orange]<?php
    session_start();
    [color=Blue]$myPhpVar[/color] = $_SESSION['myKey'];
    ?>[/color]


    ...
    [color=Purple]script language='vbscript'>
    Sub someFunctionOrProcedure()
    msgbox("Printing value from PHP var : ".[color=Blue]<?php echo $myPhpVar; ?>)[/color]
    //Another example
    $myVbVarFromPHP = [color=Blue]<?php echo $myPhpVar ?> [/color]
    End Sub
    [/color]

    .

    [/code]
    ...

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion