View Full Version : VBscript and PHP
04-24-2004, 04:18 PM
Is it possible to mix the two? For example if the person hits OK in a MsgBox in VB can it trigger something in php? Is this possible?
04-24-2004, 04:25 PM
Just remember that php is parsed before the browser gets to vbscript, so all you can do is launch a new php page
04-24-2004, 06:54 PM
oh, I can use the same page right, I could just start a function with php, like test.php?function=function1 that could be started with VBscript right?
04-24-2004, 08:50 PM
Not quite... if I understood you correctly.
Maybe you provide us a with a little more info what you're actually trying to achieve, and in which context VBScript should be used... in a web page, desktop application, etc...
04-24-2004, 09:24 PM
You can create jabvascript or vbscript or whatever other scriptinglanguage with PHP and then send it to the browser. And you can use clientsided scripting before the client requests a page, or use clientside scripting to request a PHP page, or even generate some values with clientside scripting that are then sent along with the pagerequest (in the querystring or a posted form) and are then further processed with PHP.
Maybe think of the data interchange like this : everything i can hardcode in an editor, can be automatically/dynamically generated with PHP. Every kind of userinput can be generated and sent to the server with clientside scripting.
04-25-2004, 03:28 PM
No, I am yet to see an alert, prompt, confirm have the buttons saying yes, no and cancel. Oh well. I guess a new php page will work. And no need to be rude (well it wasn't rude, but not polite either :thumbsup: )
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.