Calcultions on HTML!!!?
i need to calculate stuff and display them on an HTML page..
that is add up two details entered by the user and display the answer in te third space.....
I know VB pretty well..
how can i put them both together...
or is there any other method??
- Anonymous1 decade agoFavorite Answer
v1 = document.getElementById("v1");
v2 = document.getElementById("v2");
v1 = v1.value;
v2 = v2.value;
v1 = v1 * 1;
v2 = v2 * 1;
var res = v1 + v2;
value 1: <input type="text" id="v1" size="20"><br />
value 2: <input type="text" id="v2" size="20"><br />
<input type="submit" value="Submit">
- Joe_YoungLv 61 decade ago
darling try this link
you say you are good with VB then use vb scripts
here is Example for VB script
document.write("Hello from VBScript!")
now use your skills and write that function in vb then INCLUDE YOUR CODE LIKE THIS
<script type=YOUR FUCTION
NOW LETS SEE IF YOU CAN DO IT HONEY
- Anonymous1 decade ago
You would need some kind of script for that. Learn what your web server will support, then learn that. php, perl, vba.... any of those
Good luck and Happy Computing!