472,354 Members | 1,657 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

passing values using arrays when a checkbox is clicked

i have a doubt regarding arrays in asp.... in a page i am displaying the
following fields.. shirtname,quantity, size of shirt, price.... and for each row
i have a checkbox... when i click that check box that particular row has to get
selected... and i want to pass the value to next page.. for example... poloshirt ,
2 ,xl, 250 -- here i have check box when i click this the shirtname, 2,xl ,250 has to
get passed to next page... how to do this....can anybody help..
Jun 26 '06 #1
7 4422
Banfa
9,065 Expert Mod 8TB
The data should automatically be passed to the next page when you submit the form.
Jun 27 '06 #2
thanks for ur reply
can u tell me in somewhat details..
to use arrays to pass the values
Jun 27 '06 #3
Banfa
9,065 Expert Mod 8TB
Unfortunately I am not an ASP expert, in fact I know nothing about ASP but you could try looking at

http://www.w3schools.com/asp/asp_inputforms.asp
Jun 27 '06 #4
sashi
1,754 Expert 1GB
hi meenu,

i would suggest using session variable or quesrystring to pass variable among pages.. i.e.

on your 1st page (.html /.asp)
Expand|Select|Wrap|Line Numbers
  1. <a href="./report.asp?page_no=1&item_no=2&item_color=3">Item Name</a>
  2.  
on your second page (.asp)
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim nPageNo, nItemColor, strItemColor
  3.  
  4. nPageNo     = Request.QueryString{"page_no")
  5. nItemColor   =Request.QueryString{"item_no")
  6. strItemColor = Request.QueryString{"item_color")
  7.  
  8. %>
  9.  
Jun 28 '06 #5
thanks fr ur reply...sashi
i know the method of passing through querystring..
but this may not possible in this case...
because i have a amny checkbox and when i click a particular checkbox that
row has to get selected...

shirt=request.form("s")
size=request.form("sz")
<input type="checkbox" name="sname" value="" >

where in var shirt the name of the shirt will be stored
where in size the size will get stored
when i click the checkbox above...these two values have to get posted
Jun 28 '06 #6
sashi
1,754 Expert 1GB
Hi Meenu,

emm.. let me see.. ok am sure each record must have a unique id.. rite?? am talking abt the primary key.. now assign that key to the value attribute ot the checkbox.. ok..

for further reading pls check the links below.. good luck my fren..

http://www.w3schools.com/asp/asp_inputforms.asp
http://www.asp101.com/samples/checkbox.asp
http://www.learnasp.com/freebook/asp/formcheckbox.aspx
http://www.aspfree.com/c/a/ASP-Code/...client-sample/
Jun 29 '06 #7
ok i will see to that
thanks a lot

regards
meenu
Jun 30 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
7
by: adam | last post by:
i'm working on a portion of a CMS that allows content-admins to browse a product list, and add individual products into the taxonomy by clicking checkboxes next to categories they might belong in....
11
by: John Pass | last post by:
Hi, In the attached example, I do understand that the references are not changed if an array is passed by Val. What I do not understand is the result of line 99 (If one can find this by line...
1
by: | last post by:
Hi, 1st, I did a search and could not find any info on this, the Google results were good, but I'm still have issues...So any help will be great. I have a frame page, which contains 3 frames...
1
by: Marty Meyers | last post by:
TIA for your help! I have a page (code snip below) named "browse" which has a table in it with rows like this: 2003 1500 Silverado pickup red 51,024 $19,995 Details --------- each row...
6
by: Chuck Anderson | last post by:
My knowledge of JavaScript is limited. I learn from example and then adapt those examples to suit my needs. I have stumped myself on this one. I have a form with checkboxes that I want to...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.