?
Solved

Changing text Input value with ASP

Posted on 1998-09-16
1
Medium Priority
?
230 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 40 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

743 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