codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Carrying Value of Checkbox  ginp at 13:06 on Thursday, October 04, 2007
 

I have a seven page form where a "chapter" enters meeting information for their monthly meeting. We are starting to allow their members to register online. On page 3 of the form I have the check box and a session to carry it forward:

Session("AllowRegisterOnline") = CBool( Trim(Request("ckbox")) <> "" )

<input type = "checkbox" name="ckbox"> Check here if you would like to enable online registration.

Then on page 5, the registration link is displayed only if the checkbox on page 3 is checked.

<%
If Session("AllowRegisterOnline") Then
Response.Write("<a href='http://www1.ficpa.org/coursenet/Catalog/CourseDetails.aspx?courseID=07" & objrs("online_reg") & "' target='_blank'>Register online now</a>")
End If
%>

The problem is on page 5 there is also an edit page where they can make changes if needed. I want the checkbox to show here and be checked if they checked it on page 3, if they decide on this page and uncheck it the check does not carry forward to page 5. Make sense?








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Insert Contents of .txt file into a .html page
•  Re: Perl regular expression problem.
•  Re: Problems in login using WWW::Mechanize
•  searching for gd::graph guide
•  Re: ARRAY OF HASHMAPS
•  Adv. Regexp or Otherwise
•  Adv. Regexp or Otherwise
•  I need help pleasee! My project is about using I/o Stream
•  Help Running VB script in Windows 2003


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008