Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2006, 12:44 PM
Registered User
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default change the form input value

I tried a lot of times, but all failed.
Seems like I don't know how to transfet the Request("form.curretly.value")after the submit.

The problem is below:
I have a form and want the input value be keeped after submit.
like this example:

http://www.cars.com/go/advice/financ....jsp?mode=full

After typed in 30000 into the "Vehicle Price", then click "Calculate Payments", the 30000 still showing in the INPUT area. How could I do this?

Really need your suggestion. Thanks.

 
Old December 7th, 2006, 07:25 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Posting to the same page as the example you give does, you need a condition inside your form tag, EG:

<input type="text" name="VehiclePrice" value="<% if trim(request.form("VehiclePrice")) <> "" then response.write trim(request.form("VehiclePrice")) end if %>">

Wind is your friend
Matt
 
Old December 10th, 2006, 10:28 AM
Registered User
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First, thanks a bunch for your replies and sorry that I didn't response promptly. I solved this problem by issue a condition like:
If response("vehicleprice")<>"" vehicleprice=response("vehicleprice")
at the top of the page. It works as yours, however yours looks more professional. I prefer to use yours layout.

Thank you once again.






Similar Threads
Thread Thread Starter Forum Replies Last Post
input form ( onclick) bubblegirl Javascript How-To 1 March 6th, 2006 01:48 AM
Check-boxes on input form tmangus Access VBA 4 June 14th, 2005 11:40 AM
submitting a form have an input File alyeng2000 Classic ASP Basics 6 November 1st, 2003 09:22 PM
form input as database name gtmm9 Classic ASP Databases 1 October 21st, 2003 03:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.