Solved

Changing text Input value with ASP

Posted on 1998-09-16
1
201 Views
Last Modified: 2013-12-25
I am in the process of creating a shopping basket. currently I display the contents of my shopping basket, which includes the Quantity, the unit price and the total. Now when I displayy the Qte (auantity) I display it throughan input text box. I want to let the user change this value. And when he does I want to recalcutale the qte with the unit price and display the items once again with the qte changed and the total price. I have thought of using an OnChange event but couldn't get it to work with ASP (active server pages). If anyone knows how can I remede this problem, let me know.
0
Comment
Question by:Patricia080698
1 Comment
 

Accepted Solution

by:
orrin073198 earned 20 total points
ID: 1828637
Did you try this?

<form method="POST" name="calcform">
    Quantity: <input type="text" size="20" name="quantity" value="0"
    language="VBScript"
    onchange="calcform.total.value=calcform.quantity.value*calcform.price.value">
    <p>
    Price: <input type="text" size="20" name="price" value="20"> <p>
    Total: <input type="text" size="20" name="total" value="0"> <p>
</form>

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now