Dynamic Selectbox - Passing Corresponding Values To What Is Selected

if I create a dynamic selectbox from the table tblRewardsDetail - I can submit what is selected to tblLineItems BUT not the corresponding values.

For example if I select Item2 the corresponding value associated with that Item 50points does not write to the tblLine Items but ItemIden2 does. Code:

View Replies


ADVERTISEMENT

Client-side, Dynamic SelectBox

I want, that when a user selects 'Poems' in my selectbox, to display another select box next to it containing more options. I also want to do it with other options, such as stories, essays, etc options. how to do it?

View Replies View Related

Option Values Show In Selectbox

I have one table which has 3 fields within a SQL Database, the first is ID numbers, the second is Country and the third is City (within that Country)Eg: I have 1; United Kingdom; London

What I am trying to do is have an “optgroup” dropdown box with the Countries as the optGroup label and the cities related to each country under that optGroup. I want to populate the dropdown box with this data, preferably in alphabetical order of city. Is there a way to do this in ASP?

View Replies View Related

Passing Selected Date

Can anyone help me to pass selected date from a list box on one page to another using perl and asp?

View Replies View Related

Passing A Selected Value To A Form

I have a simple form and want to submit a selected value of a combo box. so my combo box is named "selectname" and my form has action="file.asp?" what do I have to put after the question mark ?

View Replies View Related

Pass Selected Values

I have a Multi select box which I have populated with a list of choices. Is it possible to have a second Multi select box which is initially empty, yet when the user selects values from the first Multi Select box, they appear in the second multi select box?
I'm sure I can easily do this by just posting the selection to a new page but I'd like to dynamically display the selected values on the same page.

View Replies View Related

Validate Fields When A Dynamic Checkbox Is Selected

I am trying to make several fields in a HTML form validated, but only
when a dynamic checkbox is selected. I am not sure how to do this.

Here is a snippet of the dynamic checkbox code:

<%
Set RSLIST = Server.CreateObject("ADODB.Recordset")
SQLLIST = "SELECT * FROM Newsletters ORDER BY Newsletter_Name"
RSLIST.Open SQLLIST, Conn, 1, 3
%>
<%Do While Not RSLIST.EOF%>
<input type="checkbox" name="Newsletters"
value="<%=RSLIST("ID")%>"><%=RSLIST("Newsletter_Name")%>

I would like to make three fields (company, phone_work, license)
mandatory when one of the "ID" (i.e. ID 2) is checked.

View Replies View Related

Rediming An Array With Non Selected Values

I have 24 checkboxes all with the same naming convention, each box has a
value ranging from 1 to 23, what I need to do is fill in the gaps with a
0 value where the user doesn't select a value.

So lets say that the user selects:

1,2,3,4,5,6,7,15,18,19,20

what I want to do is use the split function on the next page to convert
into an array but then I want to redim the array and fill in the missing
values, so I would end up with:

1,2,3,4,5,6,7,0,0,0,0,0,0,0,15,0,0,18,19,20,0,0,0

is it possible to do this and if so how?

View Replies View Related

Passing Multiple Selected Items To A Forms Page- How?

I have a query on a page that displays the results of a recordset. Each row has a check box that has the table ID associated with the row of data.

I am trying to figure out how do I send every row checked to another page and have that page know the ID's that were checked so the next page can query the table for those ID's and fill out a submission form. I know the form fields I can write so it dynamically names the value based on the script, that part is easy, but trying to figure out how to have the script accept multiple ID's so it can go through each and display the results is not.

Now this is simple if I am just sending one ID to the next page, I can just use a "Post" and append a ?id=xxx to the URL and then do a request.querystring for the ID. Where I am confused is trying to send multiple ID = 's to the next page so it reads more then one ID if more then one was checked on the previous page which 99% of the time it will be.

HERE IS MY MAIN QUESTION:

What should I look up to point me in the right direction to create a classic VBScript/ASP code to parse through the ID's that were checked on the previous page and have the next page query each ID for the data?

I can pretty much figure out how if I know what I am looking to do. I was just looking for some sort of direction that I can pursue to understand how do do this task. What is it I am trying to do? IS there a term or set of terms I need to consider looking up to get examples so I can tweak and write it from there?

View Replies View Related

Pass Selected Radiobutton Values Thru Query String

i m designing a online test application. my reqt is on pressing next button my selected value gets stored in the database and next ques ll appear and on pressing prev button it should display me previous question with already selected value.

how can i do this?
how can i pass selected value of radio button through query string as my radiobuttons are getting cerated dynamically.so every time its name will be different. Code:

View Replies View Related

Form Values With A File - Passing Values

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:

View Replies View Related

Passing Values

Is there a code, or something that scrambles the value being passed fromone asp page to another??

what I mean is this:

if i want to pass a value from a database (record id #721) from my page records.asp to recordview.asp

it might appear like this in the browser window, or when u highlight the link on records.asp:

recordsview.asp?K=751

I don't want users to see exactly what record number is being access... so I'd like it to show some garbage in the browser like

recordsview.asp?@$@#$=DSFSD+jklsjkld

you get my drift...

View Replies View Related

ASP Values Not Passing

I have a submit form that collects my values, and if my form action is "mailto" the values are passed, but if I try to pass to another asp page the values aren't sent and the asp doesn't execute.

View Replies View Related

Asp Passing Values

i m using frontpage to create a login form using SQL SERver database. i want 2 redirect the value of username & password to another page.

View Replies View Related

Passing Values

I have the following

pn = rs("PrinterName")
I put a response.write (PN) and it displays the correct print name

Later down the code I put in
<input type="hidden" name="PN" value=" & PN & ">
<input type="submit" value="Add Maintenance Record" name="cmdAddMaint"
onClick="window.open('addMaint.asp','addWindow','width=500, height=300')">

Then on the AddMaint.ASP page I have

PN = Request.Form("PN")

View Replies View Related

Passing Values

how can i pass value to next page when user click on link ? i can pass one values but can not pass another value please look at the code
Code:


<td align= "center"><a href="message.asp?ftopicid=<%response.write(result("fid"))%>"><input type="hidden" name="FForumID" value="<%request.querystring("FTopicID")%>"><%=result("fsubject")%></a></td>

i am trying to pass FForumID and FTopicID

View Replies View Related

Passing Values

I have a page which has a form in it. The form allows the user to pick a date and when he hits submit, he sees sales for that particular period of time. That works.

However, once he sees the sales for a particular time period, he has the option to click on a branch and see the breakdown of sales for that date.

I have that as a separate page and can't figure out how to pass the date to the new page. Right now when he clicks on the branch it says 0.00 because it doesn't think there is a date.

View Replies View Related

Passing Values

I'm passing date and time value to next page but at next page I am getting only date part. I'm not getting time part...why?

Suppose I'm passing this value 21-Oct-2005 16:11 but at next page I am getting only

21-Oct-2005

IssueDate =Server.HtmlEncode(Trim(objRs("issuedate")))

<input type=checkbox name=confirm_"& ObjID &" value="&IssueDate&"> ....

View Replies View Related

Passing Values

I have a text box.. and next to that I have a link , clicking on which will open a window , pasing value of that text box , to that new window.

View Replies View Related

Passing Values

I have an ASP called seat_add.asp, when it is initially called I send it three values

sead_add.asp?sitenum=xx&site_name=xx&ttype=xx

within the ASP i have two forms because I am loading one dropdown from a access DB and when the user selects something from the list dropdown two is then loading using information from the selection in dropdown 1 in the SQL query.

This is done via an onchange(this.form.submit) on the first form. I am losing my values and I am not sure as to why?

View Replies View Related

Passing Values

I have a shopping cart displayed in a ASP.NET page using HTML Table Control. The shopping cart item details are displayed in each rows of the html table.For a purticular item say shoes i have a html select control inside the row which displays the colors available.which the user can select..also i have the size listed using another select control in the next row.

The table and rows,control and their data are build at run time and I want to access the values of these controls when i click a hyperlink "Add to Cart".The hyperlink takes me to the next ShoppingCart Display Page.

View Replies View Related

Passing Values

In the firts form a selection is done. After submit a second form is called. In that form there must be select from a list that is depending on the result of the first form. So far so good. The selection of the second form and the selection of the first form must
pas to a thirth page when the submit botton is hit.

I use in the second form:

<input type="hidden" name="hclass" value = <%Request.Form("klas") %>>

But that seems not to work. ( no error appears)

This test works correct
<input type="hidden" name="hklas" value = "test">

View Replies View Related

Passing Values

Iv had this problem for two days and iv been trying to work around it but its getting kinda messy. Im trying to pass values from my form,thats okay,passing them to the same page and putting them in asp variables,the problem is there a way of submitting the form everytime that you leave a frame,(i want to collect all the values from each frame) I hope i explained this okay.

View Replies View Related

Passing Values

I have 3 option buttons, 3 select boxes correspondingly adjacent to them. Based on the selection of option button, the form should paas values of the corresponding select box. I tried using Javascript.

View Replies View Related

Add Dynamic Values Into Css

if you can add dynamic values into a css. I have an image which i want to set as a backgroung image but depending on who is logged in will depend on what image is being pulled out. I dont want the image to be repeated though out the region it is in so i have used the following syle sheet code. But i have had to adda an actual image name in. Is there any way to make this dynamic image value or not. And if not is there another way i could create a similar effect? Code:

.image
{
background-image:url(images/maps/bangor.gif);
background-position:center;
background-repeat:no-repeat;
}

View Replies View Related

Passing Dynamic Data From Listbox

I've created a page that has a dropdown listbox with values derived from a recordset. That is working fine. What I want to do is take a value selected from the dropdown listbox and pass it to another page that is pulling a report based on the parameter I'm selecting in the dropdown listbox.

I'm able to do this with a textbox being used to accept the parameter, but I want the client to select from a list of actual values, which will then "filter" their report.

View Replies View Related

Passing Values Between Two Pages.

onclick of an image button in my main page(parent.asp), im calling window.open("child.asp")as a popup!! child.asp has 36 checkboxes and a submit button.

I want my users to select any or all of the checkboxes and on clicking the submit button i need that popup(child.asp) to be closed and those checked values to be passed on to the parent page(parent.asp)!

View Replies View Related

Problems In Passing Values!

onclick of an image button in my main page(parent.asp), im calling window.open("child.asp")as a popup!! child.asp has 36 checkboxes and a submit button.

I want my users to select any or all of the checkboxes and on clicking the submit button i need that popup(child.asp) to be closed and those checked values to be passed on to the parent page(parent.asp)!

View Replies View Related

Passing Values From Drop Down Box

I have a form which I can upload images to a web server. In the same form I have a drop down box which is populated by folder names in a specific directory (see code). I would like the user to select the images to upload and to the select the folder (from the drop down box) they would like the image(s) to be uploaded into.

I am having trouble passing (via a post method) the value of the dropdown box, namely the folder name to the upload code page. I passed value from drop down boxes to other pages successfully in the past but something is going wrong somewhere - it doesn't seem to pull any value through - would it be something to do with how the drop down box is populated?? Code:

View Replies View Related

Passing Values To An SQL Query

I have an SQL query on my ASP page:

Select * from tblEmployee

On this page, I have a form with a Select box for DistrictName. I would like to pass the selected value to the above query and use it as part of the WHERE clause. I know that is not a problem. I can do the following:

Select * from tblEmployee where DistrictName = '" & Request.Form("DistrictName") & '"

Here is the problem. One of the values in the Select box is "All Districts". How or what do i send to the query to pull employees for all districts?

View Replies View Related

WinHTTP Passing Values Asp To Asp

I have the following structure,

Form page My Server 2nd server
html ---------->My.asp------->2server.asp

User can submit the form in html to myasp. In my.asp I am using winhttp to
send the form values and some additional values to the other server's asp
page without showing the user where the actual process is happenning.

I have used the samples, but I am not getting the values in the 2nd server.

How to get the values?

Note: I dont want to expose the 2nd server in Myserver.
MyServer can be from anywhere (ie. the myserver may not known by 2nd server)

Any suggestions?

View Replies View Related

Passing Values As Querystring

I,am passing form variable monthsenrolled as a query string It does not work as i get a error what is wrong here

function previous(){
window.open("http://localhost/college/basic.asp?status=2&test=<%Request.form("MonthsEnrolled")%>");
}

View Replies View Related

Passing Multiple Values

I have a link as follows:

<A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & " PONumber=" &
RS("PONumber") & """>" & RS("MovementID") & "</A>

I am trying to pass: MovementID & PONumber.
On linking to Tracker.asp,

MovementID = 2257 PONumber=21071045
PONumber = Empty

I am just testing this with Request.querystring. What have I done wrong, how can I separate these values ?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved