im not that good at asp, infact im using dreamweaver to make my pages up! what i would like to do is show a list of items and price in a table, with a checkbox next to them, the form is submitted and then on the next page i would like to display the the items that have been checked.
I think i have the first page sorted, i have linked the checkbox to the product ID value in the database, so i can pass that value to the next page. the problem is the second page, i can get it to show the values of the checkbox (eg items 1, 4 ,26...) but only the numbers.How do i go about using this value (number) to pull the rest of the data from the table (stored in a mdb)?
im using this in the first page form to pass the checkbox value
<input type="checkbox" name="checkbox" value="<%=(rs_stock.Fields.Item("ID").Value)%>">
on the second page i get the values get shown with
<%= Request.Form("checkbox") %>
im at a loss on how to do this
I have a page with a checkbox on it (chkMyBox). I want to be able to click on it and redirect the page back to itself, showing the box checked when it resubmitts. How can I do this?
I am trying to create a 'build a quote' page in which a user can checkoff checkboxes and have the total add up once the submit button is clicked. An example of the code I am using is
<form action="add.asp" method="POST"> option 1 value is 5<input name=""check"" type="checkbox" value="5"><br> option 2 value is 9<input name=""check"" type="checkbox" value="9"><br> option 3 value is 1<input name=""check"" type="checkbox" value="1"><br> option 4 value is 2<input name=""check"" type="checkbox" value="2"><BR><BR> <input name=""Submit"" type="submit"> <input type="reset" value="Reset"> </form> <hr> <% arrB = Request.Form("check") arrA = split(Request.Form("check"), ", ") If arrB<>"" then For each x in arrA total = x next response.write(total) end if %>
I seek to capture these values and add them up in the result.asp page. e.g. if name1 and name3 are selected, i want the total of 14 to be shown up in result.asp page. I need help here for the asp code for the above. Or, may be some advice on how the above can be accomplished.
I am trying to Send the values of checkboxes to the user's email and display in the form of List <li></li>. The values of checkboxes are sourced from a table in my access DB. I am using Jmail to send this info. Can anyone please help me how to retrive values from the check boxes, split, make a list and send in the body of e-mail. Here is wht I 've done so far :
A page displays the Product literature that a customer can request to receive by postal mail by clicking a check box. The literature selections are created by a dynamic record set based upon what the company enters into the Literature table (currently 10 selections). The checkbox form tags are:
LiteratureID is the Access autonumber primary key field. I can use the LiteratureName in the "name" attribute if it is easier.
The form processing page needs to Insert each selection into its own record in another table. This "requested" table also inserts the database ID for the customer that is created after first inserting the customer contact info. In other words the "requested" table needs to record the customer autonumbered db ID and each selected checkbox value.
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:
To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
is there a way of having a dropdownlist and a text field with a checkbox so that you can check a box and have the vaule assigned from a option selct list or check another box and have the value assigned from a textfield?
I would like to make an interaction with a database using ADO and SQL. I would like to display some parts of the database using checkboxes to choose the different parts. But I don't know how to build the SQL command in fuction of which checkbox is checked.
I have a checkbox which is used to determine whether or not the user wants to display a map of their business with their listing the value of which is being written into a database.
When I am outputting the listings I am just trying to use a simple if else statement
i.e. If(ShowMap = true)Then Response.Write("<td>Show Map</td>") Else Response.Write("<td>No Map</td>") End If
Problem is I know the database contains different values for ShowMap i.e. some true, some false. Yet when I use this code, No Map is output for all records.
I have a profile search where people can search through our dating profiles. I want to add a checkbox which when checked filters out those records where the recordfield pictures is empty.
I have problems figuring out what the checked value of the checkbox should be and how to use the information from the checkbox in the searchresults page to build the record set. For understanding, if a user does not have a picture the picture field is empty.
I have a checkbox in a form from which I want to collect the value. <input type="checkbox" name="Question11a" value="a">
In the asp page that is called on submit of the form, I declare a variable, iQuestion11a, and request the value of this checkbox: iQuestion11a = Request("Question11a")
When I print out the value to an html page <% response.write(iQuestion11a) %> it is empty.
When using checkboxes on a form, if you uncheck them, the unchecked name/value pair in the Request.Form collection doesn't show up. It only shows when the checkbox is set to ON. Is this correct? What's the workaround if it is?
if i want to display many records from database with each record has one checkbox.. if the record do not meet the constraints.. e.g. if supplier name has no email address.. then that checkbox will be disabled....the rest will appear.. i tried the disabled/// but no result.
I have a JavaScript function that gets a boolean value and checks or unchecks a checkbox based on the boolean value.
function initialize_p(thevalue) { if (thevalue) { document.form.cbx1.checked=true;
} else { document.form.cbx1.checked=false;
}
In the example, I want form.cbx1 to be checked if 'thevalue' is true and unchecked if 'thevalue' is false. However, it's not working as desired. I used the alert stmt to see what it does:
- When 'thevalue' is true, it goes to the 1st part of the if stmt and checks the checkbox. - When 'thevalue' is false, it still goes to the 1st part of the if stmt and checks the checkbox
It looks it never goes to the else!! I used alert stmts to see where it goes if the 'thevalue' is false (used alert to show me the value of 'thevalue' and where it is in the if stmt). I don't understand what's going on. Can anybody see what is wrong with the function?
My intention is to have the user click a checkbox for each product he wants. Then submit the form placing multiple items in his cart.
If I use a text box like the following and enter a 1 for each product, submit, no problem.
The user gets the products he wants. <input name="qty" type="text" value="0">
However, if I use the following checkbox code, and assuming the user checks 4 products half way down the page, he will get the first 4 products in the recordset. If he clicks 1 checkbox, he will always get the first product, not the product he chose. <input name="qty" type="checkbox" value="1">
What I have found is when I submit the form to a blank test page using checkoxes or text boxes, there's a considerable difference. The text boxes deliver a comma delimination for each occurance. The checkboxes only offer comma delimination for each checkbox that is selected. At this point, I'm assuming that's the difference between the two and it cannot be changed through HTML.
I am populating the few fields values from one of the table. I put series of checkbox having same name but have a different value ( value of checkbox is small int, an autoincrement field of table). I have to take action against the selection of checkboxes. If the user check one of the checkboxes and select "Approved the things " then the USER will move to some else page and the selection will Approve. On the contrary, if the user opt delete the things then user move to other page and record will be delete from the table. Now my problems is... 1) how can I know which checkbox user selected ? 2) Are there someway to get the value of checkbox without making form ?