Any Dopers know how to code 'HTA' (Html Applications)? How do I get at form data?

Hi

I just discovered ‘HTA’ which seems (at first) to be something almost ideal for me. The power and ability to perform local tasks that VBS gives me plus the ability to create forms that HTML gives me.

Problem is I am not sure how to get data from a form and use it in the script part of the HTA. The internet isn’t much help in this regard.

I want to get the contents of a text input and insert it into a command being run in a wscript.shell object

(I want to get an ip address from the user and then insert it into an mstsc dos call)

I have sort of answered my own question. It’s remarkably simple…

you give the input a name (such as ‘test’)

<input type=“text” name=“test”>

then you access its value like this…

test.value

so for my purposes I’d do this…

objShell.Run(“mstsc /v:” & test.value & " /admin")

Now, if there were an equivalent of this for PHP I’d be quite pleased!
(as someone getting into PHP I like the idea of being able to create standalone apps with php and mysql)