Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    84
    Thanks
    10
    Thanked 0 Times in 0 Posts

    php inside vbscript

    hi i need to get something like this to work with php inside vbscript.

    obviously more complicated.


    <html>
    <head>
    <script language="VBscript">
    Sub yes_onclick()
    alert("Hi")
    <?php
    echo("hi")
    ?>
    alert("hi")
    End Sub
    </script>
    </head>
    <body>
    <input type="button" name="yes" value="go">
    </body>
    </html>

    thanks
    Last edited by alcool9999; 10-11-2009 at 02:47 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    <script language="VBscript">
    Sub yes_onclick()
    alert("Hi")
    <?php
    echo("hi")
    ?>
    alert("hi")
    End Sub
    </script>
    Output of the above after parsing would be
    Code:
    Sub yes_onclick()
    alert("Hi")
    hi
    alert("hi")
    End Sub
    which will give you syntax error. What actually you need to achieve?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,073
    Thanks
    2
    Thanked 22 Times in 22 Posts
    Not tested, but I assume you want something like this:

    Code:
    <html>
    <head>
    <script language="VBscript"> 
    Sub yes_onclick()
    <?php
    echo("alert(\"Hi\")");
    ?>
    alert("hi")
    End Sub
    </script>
    </head>
    <body>
    <input type="button" name="yes" value="go">
    </body>
    </html>
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #4
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    why on earth would you need php and vb script you could just use response.write and do it all in vb script
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com


  •  

    Posting Permissions

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