Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,000 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,937 people online right now. Registration is fast and FREE... Join Now!




VBscript HTML Check box

 
Reply to this topicStart new topic

VBscript HTML Check box

vb6_god
post 2 Aug, 2008 - 12:01 PM
Post #1


New D.I.C Head

*
Joined: 3 Dec, 2007
Posts: 26


My Contributions


Hey there,

I have searched everywhere for this but no luck so far. Is there a way that i can find out if the checkbox is ticked from VBscript
I want to store the list value in a cookie when its selected.

Example:
CODE

<a href ="#"><input type="checkbox" name="i" value="1">Sometext<br></a>
<%
If i.checked = True then
Response.Cookies("Cookie") = i.value
End If
%>
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 2 Aug, 2008 - 11:37 PM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,914



Thanked 117 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


You don't really want to do this check in VBScript because that functionality would only work in IE as its the only browser that supports VBScript (unless you're doing it server-side with Classic ASP). If you're doing it client-side then you're going to want to use JavaScript.

So let me know how you're doing this so I can offer the best solution smile.gif
User is offlineProfile CardPM

Go to the top of the page

vb6_god
post 28 Aug, 2008 - 11:55 AM
Post #3


New D.I.C Head

*
Joined: 3 Dec, 2007
Posts: 26


My Contributions


Im using classic ASP

vacation..sorry bout the long reply
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 04:09AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month