vbs to handle HTML radio buttons

What I need to do is to create radio buttons and set variable BusinessUnit value depend on what user
choose. In HTML I use such code:

<table>
	<tr>
		<td>
			<input type=radio name="BU" id="GDS"  language=vbscript onclick=GDSfunc>
		</td>
		<td>
			<Label class="Larger" for=GDS language=vbscript >GDS</Label>
		</td>
	</tr>
	<tr>
		<td>
			<input type=radio name="BU" id="GPS"  language=vbscript onclick=GPSfunc>
		</td>
		<td>
			<Label class="Larger" for=GPS language=vbscript >GPS</Label>
		</td>
	</tr>
</table>

This looks ok. I also use vbs script to handle these radio buttons

Option Explicit
Dim BusinessUnit

Function GDSfunc
Set BusinessUnit = "GDS"
End Function

Function GPSfunc
Set BusinessUnit = "GPS"
End Function

But when I try to use it there is an error

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s