How to get values from vbscript to php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thallasridevi
    New Member
    • Dec 2007
    • 27

    How to get values from vbscript to php

    Hello all,

    I want to .get the values from a vbscript. I have written the function in onload property of body tag in php file. Now i need to get the values of that function in php file. Any one please help me regarding this.

    Waiting for your reply.

    Thanks,
    Sridevi.
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    vbscript, javascript etc are client side scripting languages, PHP runs on the server you won't be able to get the value to the PHP without using AJAX or a PostBack.

    What are you trying to do and i'll try to advise

    Comment

    • thallasridevi
      New Member
      • Dec 2007
      • 27

      #3
      Originally posted by harshmaul
      vbscript, javascript etc are client side scripting languages, PHP runs on the server you won't be able to get the value to the PHP without using AJAX or a PostBack.

      What are you trying to do and i'll try to advise
      Thank you very much for your reply.

      I need to write the values of vbscript to Database. is there any way to that from vbscript directly?

      Thanks,
      Sridevi,

      Comment

      • stepterr
        New Member
        • Nov 2007
        • 157

        #4
        Originally posted by thallasridevi
        Thank you very much for your reply.

        I need to write the values of vbscript to Database. is there any way to that from vbscript directly?

        Thanks,
        Sridevi,

        I do something kind of like that with javascript. Within my javascript I found it easiest to redirect to a new page that actually does my database update. And when I redirect to it I just put the values within the link such as
        Code:
         "Save.php?ListBox="+ sel1
        Then on the new page that does the database update I just get the value of sel1 by using $_GET.

        Comment

        • harshmaul
          Recognized Expert Contributor
          • Jul 2007
          • 490

          #5
          you could build up some ajax to pass the scripts to the php script then it will reduce the posibility (slightly) for query string hacks. So my advice is to look in to experiment with ajax. plus its lots of fun when you can make it work for you.

          Comment

          Working...