![]() |
simple multiply script
Hi all our teacher gave us this simple script that when someone gives two numbers in two forms then it will multiply their contents and print the result in an another form after he click one button.Here is the code:
:
<script language="javascript">:
<form method="post"> |
You didn't copy it correctly. You're missing a logical operator between the two expressions in the "if". I didn't look beyond that. You could well get into conversion problems, auto conversion or not.
|
Yes i didn't copy it correctly.I was missing a logical "or" operator between the expressions of "if".Now it works :
:
<script language="javascript">:
<form method="post" > |
it wasn't stupid...you fixed your problem.
oftentimes all you need is a fresh perspective. good luck! |
| All times are GMT -5. The time now is 1:34 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC