Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 October 13th, 2004, 02:11 PM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Al dasty Send a message via Yahoo to Al dasty
Default display form along with selected values.

hi,
i am new to ASP, and it seems like you guys are gurus... :(
well i need little help in displaying user selected values on the next form. plzzz help cuz i am stuck for last 1 week...i was able to get the value for the text fields, by using session variables...and i can save and display the name of the radio button by using session variable but i want to display the form with selected value....

Thanx.... any help is great
:-)
Al

i am retrieving the user values from form 1 and displaying in a table on form 2. which is working good. but when i try to disply the same form with user selection its not showing me the user selection.
-------------------------------------
FORM 1
-------------------------------------


<form action="form2.asp" method="post">

<INPUT type=radio CHECKED name=travel value ="Air">By Air
<INPUT type=radio name=travel value ="Road">By Road</p>
<INPUT type=radio name=travel value ="Ship">By Ship</P>
<INPUT type=radio name=travel value ="limousine">limousine


------------------------------------
FORM 2 (this is working fine)
------------------------------------

<form action= "form3.asp" method="post" >

<% dim travel
travel = Request.Form("travel")%>

<%if travel = "Air" then Response.write("By Air")%>
<%if travel = "Road" then Response.write("By Road")%>
<%if travel = "Ship" then Response.write("By Ship")%>
<%if travel = "limousine" then Response.write("Limousine")%>

<INPUT TYPE="HIDDEN" NAME="travel" VALUE="<%Session("Z") = request.form("travel")%>">

----------------------------------------
FORM 3 (**problem**)(this is where i want to display form1 along with user entered values)
----------------------------------------
"<%=Session("Z")%>"

<INPUT type=radio CHECKED name=travel value ="Air">By Air
<INPUT type=radio name=travel value ="Road">By Road
<INPUT type=radio name=travel value ="Ship">By Ship
<INPUT type=radio name=travel value ="limousine">limousine


 
Old October 13th, 2004, 07:40 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default



I think in form2,

<%Session("Z") = request.form("travel")%>

instead of

<INPUT TYPE="HIDDEN" NAME="travel" VALUE="<%Session("Z") = request.form("travel")%>">

and in form 3,


<INPUT type=radio CHECKED name=travel value ="Air" <% if Session("Z") = "Air" then response.write " checked" %> >By Air
<INPUT type=radio name=travel value ="Road" <% if Session("Z") = "road" then response.write " checked" %>>By Road

.
.
.

<INPUT type=radio CHECKED name=travel value ="Air">By Air
<INPUT type=radio name=travel value ="Road">By Road
<INPUT type=radio name=travel value ="Ship">By Ship
<INPUT type=radio name=travel value ="limousine">limousine


Instead of session you can use hidden field in form 2 as well.


Om Prakash
 
Old October 19th, 2004, 06:57 AM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Al dasty Send a message via Yahoo to Al dasty
Default

thanx buddy it works.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid - selected item display advice janetb ASP.NET 1.0 and 1.1 Basics 2 May 9th, 2006 02:56 PM
FileUpLoad to display selected graphic? Ron Howerton ASP.NET 2.0 Basics 1 April 4th, 2006 08:23 PM
retrieve and display selected results babywind BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 February 11th, 2005 05:23 AM
display value of selected radio in the textbox hosefo81 Javascript How-To 1 February 1st, 2004 07:57 AM
Can't display values of HTML form controls hosefo81 Beginning PHP 3 November 10th, 2003 05:34 AM





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