Link to home
Start Free TrialLog in
Avatar of IT79637
IT79637Flag for United States of America

asked on

Call VBScript from HTML Button

Hi Experts:

How do I call client side VBScript using an HTML button?

My application is PHP5, HTML,  MySQL  based running on WinXP Pro, SP2.  I'm using WAMP2 as my LAMP.  (http://www.wampserver.com/en/)

For the button Click event, I want to pass two values stored in HTML text fields to the VBScript.  Call them businessUnit and glAccount.  When the script finishes executing, I want to return a value  from the VBSCript to the HTML page and and place that value in a text field .  Call it returnStatus.   See Code Snippet below.

Please be sure to address the two pass variables and the one return variable.

Note, in the code snippet the text fields "value=" are PHP variables.

'Thanks much,
Cheers!
<input name="businessUnit" type="hidden" value="$bu" />
<input name="glAccount"    type="hidden" value="$glAccount" />
 
<input name="returnStatus" type="text" value="<?=$returnStatus?>" size="8" maxlength="8"/>

Open in new window

Avatar of IT79637
IT79637
Flag of United States of America image

ASKER

Upped point value to 500.
ASKER CERTIFIED SOLUTION
Avatar of gops1
gops1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT79637

ASKER

Thanks much!!!
Cheers.