Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 10-13-2004, 02:55 PM   #1
Beta Member
Join Date: Oct 2004
Posts: 1
Default display form along with selected values.

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 [red]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.... [/red]

Thanx.... any help is great

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 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" >

<!-- To display radio buttons -->
<% 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")%>">

[red]FORM 3 (**problem**)(this is where i want to display form1 along with user entered values) [/red]
[red]<!-- if i use this session variable than it just displays the value of the selected radio... i want the form with the selected value .. from from 2 -->[/red]
<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

al dasty is offline   Reply With Quote
Old 10-16-2004, 03:37 AM   #2
Site Team
David Lindon's Avatar
Join Date: Dec 2002
Posts: 15,233
Default Re: display form along with selected values.

I'm not particularly great with ASP but I'll give it a shot. Can you try something like:

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

<% response.write(radio)%>
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0