form not updating values

This is a discussion on "form not updating values" within the Classic ASP section. This forum, and the thread "form not updating values are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 10th, 2005, 19:05
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
form not updating values

I have a form with a combo box that when you click it, it should sumit the value selected..

here is the form code with asp code:
<form action="placeorder.asp" method="post" enctype="multipart/form-data" name="frmTypeCheck" id="frmTypeCheck">
Type of Check:
<label>
<select name="typeCheck" id="typeCheck" onChange="frmTypeCheck.submit();">
<%
if Session("CheckType")="" then
Response.write("<option selected value=" & Chr(34) & Chr(34) & ">-- Select a Type --" & vbCrLf)
else
Response.write("<option value=" & Chr(34) & Chr(34) & ">-- Select a Type --" & vbCrLf)
end if

While Not rsTypes.EOF
if Session("CheckType")=rsTypes("type") then
Response.write("<option selected value=" & chr(34) & rsTypes("type") & Chr(34) & ">" & rsTypes("type") & vbCrLf)
else
Response.write("<option value=" & chr(34) & rsTypes("type") & Chr(34) & ">" & rsTypes("type") & vbCrLf)
end if
if rsTypes.eof=false then rsTypes.movenext
Wend
%>
</select>
</label>
</form>

when it loads in, it doesn't keep the value from the typeCheck combo box.

here is the code I use to check the form value:

<%
if Request.form("typeCheck")="" then
Session("CheckType")=""
else
Session("CheckType")=Request.form("typeCheck")
end if
%>

anyone know why it isn't getting the value?
Reply With Quote

Reply

Tags
form, updating, values

Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Taking values from a form without sending it... Mazinger JavaScript Forum 4 Jan 8th, 2008 18:39
redirecting form based on radio button values c_martini JavaScript Forum 7 Oct 9th, 2007 10:26
Setting Form Values to Previously Entered Values masonbarge PHP Forum 6 Oct 17th, 2006 17:36
Multiple Choice Form Values Andy K PHP Forum 9 Aug 30th, 2005 12:01
Passing values from Datagrid to another form caryma ASP.NET Forum 4 Aug 17th, 2005 08:06


All times are GMT. The time now is 00:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43