I have two related tables in my database. One stores events and the other stores a list of key topics.
I have an interface set up where users can add / edit events.
In the add event page, I am querying the "key topics" table and returning them as options (array of checkboxes). The user makes their pick, and submits. All the data saves in the 'event" table, including the primary id of the "topics".
That part works great. The problem I am having is when the EDIT event page resolves, I am trying to "check" the options that were previously saved.
First thing I do (at the top of the page) is to query the events table to pull all of the data out. I use the 'events" table to do this.
For the checkboxes, I am once again looping through them in a query that uses the "key topics" table. So the boxes are displayed, but I can't seem to get the logic right to have the appropriate ones checked. here is my current code:
at the moment i am creating a shopping cart of sorts. Simply the user selects the check boxes of the items he wants and clicks submit. The items are dynamically created and they could select anything from 1 to 100 items..
so processing the form is clear not possible by hard coding. How could i read all the values from the POST into an array instead of processing each item at a time.
I have a html page with 20 checkboxes in it. I want to compare the value av the checkboxes ( when the user choose them) with an array which has 5 values. My checkboxes have different values but same name....
It has to work like this that the user marks the checkboxe and sumbit the form. The result should sends as an email and my program has to compare the checkboxes values and the values in my array och write the result in the email that should be send away.
Basically each page has a checkbox for each item and they should be able to click the items they want to add and continue on, and at the end it creates a dynamic report to give to a customer. On the first page there are 9 check boxes. The access database table called "IMAP" has two columns: "id" (primary key) with values 1 thru 9 and a column "active" with the yes/no type. Code:
I have two arrays which are values for checkboxes and I need to compare them, The first array I created which is the checkbox values that were selected previously Code:
I have a form that has checkboxes. I would like when the user clicks the process button the next page will display the value of the boxes that were checked.
To get the checked value of checkboxes I use this code: Code: For Each subitem In oFileUp.FormEx("imgCheckBox") ... Next How can I get the value of those unchecked checkboxes?
I am trying to set up a page, with some input fields, which are mandatory. Then there is a checkbox, when it is checked, the input fields do not need to be filled (not mandatory anymore). At the moment, even though the checkbox is checked it asks to fill the mandatory fields.
I've never used checkboxes in ASP, well nows the time i do it.Im creating a login script, and want the user to be able to click on "remember me"it keep them logged in.
how would i get that in ASP. how would i make it detect wether or not the checkbox has been selected or not?
I'm trying to create a form that has checkboxes on it that when a user checks the particular boxes, and submits the form, it performs the query based on the selections. I'm using MS Access and FrontPage. I'm having problems passing the information from the form to the query and then to the database.
How can I use checkboxes to send out an email based on which checkbox was clicked? For example, I have an html table that is constructed dynamically which contains information about events stored in a database.
The table has checkboxes out to the left side (similar to hotmail) and when I check however many boxes, and click submit, I want to send an email to each address that is associated with each record that I checked its box.Something like "for each checkbox clicked, select the ID and email address associated with it, and dispatch an email"
I have everything set up except the asp loop and select statement that will help me achieve this.
i have some 15 checkboxex on a form... i want to 1st check the no. of checkboxes that are checked?? and then loop it that many times adn insert the quantities the user enters in the text boxes.
do i need to group the checkboxes....hwo can i do that??? how to know which checkbox is checked because out of the 15 checkbox say 1,5,7, 9th are checked then i 1st need to get the id from the database adn then based on htat id retrieved i need to insert values on another table.
I've been using Dreamweaver to develop some simple database connectivity. So far everything works, but could be more user-friendly and flexible.
I have an Access database with 4 document types. I have search forms which allow users to enter a keyword and search for one specific document type. The problem is I need four different search forms this way. What I would like is to include 4 checkboxes and one keyword textfield. Code:
I have a series of dynamcially named and id'd checkboxes. each one has the same name but its id value is different. The ID value tells me which checkbox relates to a particular record in a recordset. I need to obtain the id of the checkbox and its value - so far I can only get the value as follows :
<% For x=1 To request.form("BillNumCheckBox").Count aSelected = request.form("BillNumCheckBox").Item(x)
response.write x & " = " & aSelected & "<BR>" Next
I have an array in ASP and I am populating the array with the values from database on checking a condition. Lets say i have array of arr(5). Initially I made all the array items null ...
I have an array in ASP called WordsArray() which contains several words. What I would like to do is search the array for a word, and if its not there, add it to another array ResultsArray()
So far, a loop in my code only checks the current array value, and not the rest of the array, adding the search word to the end of the resultsArray regardless.
Now what I want is to add the checked values in page2.
For example :
if checkbox1 and checkbox3 gets checked I want to add the values in the checkboxes which in this case is 10 + 30 and get the total sum (40). Hope this makes sense?
So how do I retrive the checked values and then add the checked values with eachother to get the total?
The problem I have is that I need to save the content of a form in a database, and I donw know how to save the content of a checkbox, can you give me an example of the code?
I'm writing an Online registration system for my friends new business. I'm trying to incorporate checkboxes so when a person checks on 3 or 4 checkboxes and hits the Submit button I can pass the information of what they checked_on to a new page. When I get to the new page I would like to update a database, based on what they checked_on on the previous page. I'm not sure how to do this. I'm not sure how to pass the information.
I have a page that displays a list of people to email and a checkbox by each name. I want to be able to send to the next page the value of the checkbox and have it either email them if checked or not email if not checked. I know this sounds simple but I have been racking my brain over it for a while now. I have tried naming the checkboxes as so:
And then I am at a loss for what to do on the second page as to how to get the values of the individual checkboxes. If the checkbox is checked the second page would then need to hit the DB for their email address and process the email.
What I have are two pages. One is a form with some input boxes and check boxes on it. It is posting to a different script page that inserts into a database and sends the fields through email.
My problem is sending the information which is checked through to the next page. Each of my checkboxes is given the value of what should be inserted in the table and into the email. I just need a way of determining which checkbox is checked so I can send my information.
In my createpst.asp page I am trying to load in an array using the split function:
<% Dim arrVals arrVals = split(Request.Form ("pstfldr"), ",") Dim i For i=0 to UBound(arrVals) Response.Write arrVals(i) & "<br>" Next %>
However, the problem is that some of my values that are read in from myArray(i) in the first asp page can be more than one word. So, when I get to my second asp page and traverse through the loop, some of the values stored that contain more than one word only output the first word.