Solved

Changing text Input value with ASP

Posted on 1998-09-16
1
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

733 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