Form Change Based Upon Criteria Selected?

Is it possible (and if so, how?) to have an asp form page that based upon a user's selection on a field, would generate a input field b that the user selects?

For example:

User selects "name" in a select statement which would list the possible names to select from or if the user selects "telephone" in the same select statement then it would list the possible telephone numbers to select from.

Or simpler:

If user selects A then show P to select from or
if user selects B then show Z to select from.

View Replies


ADVERTISEMENT

Date Based Criteria

i'm looking to select records based on date, the database
stores the date as mm/dd/yyyy time am/pm ie: 08/11/2004 2:42:28 PM and
unfortunately the field is called date

this much I know if i want to select based on date:

select from table where [date]=

it's my understanding that i need to put the name of the date field in
[] in order to prevent it from confusing it with functions etc...
however my problem is this

how do i get it to select records from the month of december i have
tried [date]='12/*/2004' and [date]='::12/*/2004::' and many other
variants that i have read about on various web sites, but it never seems
to work once again the answer is probably not as complicated as i
believe it to be,

View Replies View Related

Recordset Based On Records Selected Freom Previous Page

What I want to do is have a recordset with all records in and display a list by title with a tick box next to them, then goto a new page which the recordset is all the records that the user selected on the previous page.

View Replies View Related

Change Image Based On Date

I can use to rotate images based on the date. I have a number of logo images that I want to appear in the same location of my web page. However, I want to determine which one is "active/viewable" depending on the date. I'm somewhat of a noob although I know how to manipulate canned scripts to get them to work. Any scripts out there that do such a thing?

View Replies View Related

Change Text Field Based On Menu Selection

ASP/javascript with a drop down populated by an access database. The drop down works fine but I cant figure out how to get it to change a value of a text field.

I want the value in the text field to change to reflect the data in another column in the table, same row. Code:

View Replies View Related

Display Drop Down Options Based On The Selected Item From Another Drop Down

The code that I have has 2 drop down boxes dd1 (visible) and dd2 (hidden). Based on the option selected in dd1, dd2 should be visible and populate options. I think I can have OnChange script but how could I return the value and put it in the SQL query (see variable in red in thecode)? Code:

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

How To Set Form Fieds Depending On Selected Item In Drop Down List

I am having a drop down list and other text boxes in a form. I need to retrive and fill text boxes from database depending on the selected item in drop down list. I am using javascript as scripting language. Can any body give solution.

View Replies View Related

Dynamic Tables Based On A Form

I have a db with about 15 fields in, what i have a list of all the fields on a form, simply check the checkbox relating to that field and on the next page it creates a table only with those fields in it.

View Replies View Related

Send Mail Based On Form Value - Only Once!

I've been racking my brains over this one. I have a Classic ASP edit
form with many fields, one of them a Status drop-down. If the Status
(option value) has been changed to "Pending" for instance, I do a
objMail.send, otherwise it doesn't send.

No problem, but how can I
prevent the mail from sending AGAIN if a user goes back to the page and
updates another field, or even just refreshes the page? If it helps, I
am updating a SQL Server database.

View Replies View Related

HOW To Submit A Form Based On On List Box Selection

I writing an asp application that uses three listboxes. the first one lists departments ids the second list box populates either users or supervisors based on which button is pressed ( users button and supervisors button).

If a user is selected from the list the submit button redirects to page1.asp. if a supervisor is selected the same submit button redirects to page2.asp My question is how can I submit the form without using more than one submit button.

View Replies View Related

Form To Change Password

I am trying to create a script to allow a user to change their password.I am not quite sure how to do this.I am using a SQL database.

View Replies View Related

How To Hide Form Field Based On Dropdown Choice

Dropdown has three choices. If the third is chosen, the next field needs to be hidden. is there an ASP version of a show/hide script?

View Replies View Related

Search DB Based On Multiple Form Fields On Submit??

I have a form on one page where someone selects a bunch of options and details about a specific category. Then on the next page they fill out a form with contact information, name, address, email, etc.

Well what I want to know is when they click Submit on that contact form is there a way to have it so it goes through and searches the database for any that match the state and county(which they will select from a )??

So what I basically want right now is for the first form to be filled out, then the second form to be filled out, then when they are submitted it will go through the database and select everyone in there with that state and county, then on the next page display the results of both forms AND the matches in the db(obviously whatever fields I want it to display).

I already have both forms(basic html), I already have the dynamic dropdown for state and county(classic asp), what Im wondering is how do I put that dynamic dropdown in the contact form and then when submitted it will go through and search the db based on what was selected there. Would this be some sort of onClick for the submit button tellin it to search the db based on the dropdown or how would I get started on something like this?

There will be other information on the dropdown like name address email so one problem I was wondering about was my dropdown menu. When you select the state it refreshes the page and then loads the counties, so wouldnt that erase anything that was filled out on the form?

I could make it so they actually type the name of their state and county but that causes problems too because if they mispell either then it wont return any results.

View Replies View Related

Form Redirect On Submit Based On Radio Button Selection.

I need to have my ASP form "post" action=? pass to a different confirmation page based on a radio button selection on the form, after submit.

Depending on which radio button they click on, they will receive the same confirmation but then be redirected to a selection specific page, based on the radio button selection. I'm assuming I need to create several different action pages, each with a different redirect, then have the radio button determine which action page the form is directed to based on the radio button selection.

I've tried several different options, such as creating a variable on the form, sDirectionVar, with redirect conditions, but I don't know how to call that on submit? I'm not sure I'm even going in the right direction.

View Replies View Related

How Can I Send An Instant Confirmation E-mail Based On Form Info?

I have a form where the visitor should enter the e-mail adress, a password and some additional info. When the form is submitted I want to automatically send a confirmation e-mail to the visitor, containing the information from the form (like the procedure when joining this forum :-)). Is it possible to achieve that with ASP? Would be very grateful if anybody can finish the code below... because I don't know how to handle the variables after I have retrieved the form info..

This is enterinfo.htm.....

View Replies View Related

Is It Possible To Send An Instant E-mail Confirmation Based On Form Info?

I have a form where a visitor can enter som information, in this case the e-mail adress, password and some additional info. As soon as the form is submitted I want to send an automatically generated e-mail confirmation to that user's e-mailadress (like the procedure when joining this forum for the first time). When I have retrieved the info from the form in the "confirm.asp" I don't know what to do....

View Replies View Related

Problem With An .asp Page Displaying Data Based On A Form Field Value.

I have an asp page that displays informaton from an Access database. I want to create a form that allows users to display only data that matches their search criteria.

I have made many forms like this in Front Page with the Database results wizard, but I want to manually code it. Code:

View Replies View Related

How Do I Submit Form Data And Change To A Different Page?

I have a classic ASP page with a number of text boxes which are updatable.

For convenience I want to add 'tabs' at the top of the page (like a card
index) as the data to be displayed is split into specific groups (client,
company, preferences, events).

How do I update any changes to the data and switch to a different page - at
the same time? i.e. the user doesn't have to click 'update' (submit button)
before changing pages Code:

View Replies View Related

Change ASP Web Form Background Color Programmatically

I have web page that I use for add/delete/modify records from a database. Depending on what the user desires on previous web page this particular web page allows users to add, modify, or delete the record from a database. Each has different directions and labels on buttons are change with in code.

My users also want the background color for add web page to be one color, modify web page to be different color, and delete web page third color. In VB this was form.background color, but can not seem to find solution in MSDN for this one.

View Replies View Related

How To Form A Method To Change HTML TD Attributes When Passed Element ID?

I have a ton of TD attributes that have to be changed based on the
data in the DB. All TD elements are ID and runat=server.

Changing the attributes of a SINGLE TD is simple:

<td id=thisTD runat=server>

thisTD.Attributes.Clear();
thisTD.Attributes.Add("Class",reader["thisTD_Class"].toString());

Now, say we have 100 TD elements with IDs TD_1 to TD_100

I have not been able to find a way to (essentially) say:

for(int i=0;i<100;i++){
"TD_"+i.Attributes.Clear();
"TD_"+i.Attributes.Add("Class",reader["TDClass"+i].toString());
}

in J-Script, I could do it by Eval() or about eight ways through the
DOM. It seems crazy to me that if I can access the Attributes of a
specific element directly by ID (thisTD.Attributes), I couldn't also
access it by reference.

But I have been able to find NOTHING to indicate how this may be done.
Obviously, my problem is not limited to a single attribute, or else I
would have just typed them all out by now. Trouble is, there is a lot
of logic that must be applied to the data before setting the
attribute. Without being able to iterate or loop by reference, I will
be typing for ages just to change some freaking classes.

View Replies View Related

When Change The Directory Then Date Format Will Change

I have virtual directory where I run test.asp page with only this code inside:

<%Response.Write now()%>

As a result, if I go into the IE and browse for the test.asp page, I get :
1/22/2004 14:18:04

If I copy this page on some other(existing) virtual directory, I get as a
result 22.1.2004 14:19:06

If I create a new virtual directory and I copy the page there, I get :
1/22/2004 14:18:04

Seems like that IIS takes english date format even if my regional setting is
:
d.M.yyyy and I would like that date on the page is always like this:
22.1.2004 14:19:06

Where I can change this setting?

View Replies View Related

How To Create SELECT QUERRY FOR "A CHANGE ORDER FORM" In ASP?

I've got a problem i would like you to help me out with. My company has got a client who sells meat and my senior tech lead has customized the cart to fit their needs and have created a despatch table with a "simple asp form" that allows them to scan their products in with a wi-fi scanner. Code:

View Replies View Related

Filter Criteria

I'm using APS VBScript web page on an Access2000 database and I am trying to select from a recodset using a date as the criteria.
I keep getting ADODB Data Type Mismatch errors no matter what I do to the database field (which hold a date/time) or the URL.
My URL looks something like ... result.asp?id='3/20/2005'...
The database field is an Access date/time field formatted to mm/dd/yyyy.

View Replies View Related

Searching Criteria

I am currently developing a project for a bus company to book seats. I have started this program but have ran into a problem as need to search a criteria e.g. Name , date, Telephone etc so i can choose to edit or delete the record.

I need to use a txtbox to search for the record as their will soon be thousands of records so i will need to search for a record by a criteria to either delete or edit the record i hv uploaded a copy of my http://www.angelviewinn.co.uk/smithy330/customers.mdb i am using it is very simple.

View Replies View Related

Select Criteria - See Results

Basically, I want the user to be able to select criteria on the asp page for their search and then those that match will be shown. I don't know if form is the best way or another method.

Does anyone have any ideas for good resources or know how to do it?

Example:

The database is of stock homes. User can select sq. footage, price range, home style, # of bathrooms, # of rooms, location, etc.

After user submits criteria those homes that match criteria will show.

View Replies View Related

Mismatch In Criteria Expression

I am trying to make my update page work, but when i submit the form it comes with this error "mismatch in criteria expression" and the problem i think lies on one of my menu list that is joined to another table in the database.

View Replies View Related

Query String Criteria?

I need to ask for all articles where article number is NOT "0" as in...

select * from posts WHERE ArticleNo" ??? "order by PostNo Desc", dcnDB, 1, 3

I don't imagine operators will work, how you guys doin it?

View Replies View Related

Recourd Count By Criteria

how to get a record count by using a criteria. Something like this:

RecCount = rsTEst("Priority") WHERE rsTEst("Priority") ="Urgent"

how to do this?

View Replies View Related

Combobox Criteria For SQL Database Search

I have a combo box in an ASP page, there are 7 lists total in the combo box, there is another text box on the page and a search button. I want the users to select an item from the combo box and type a keyword and click search.

The combo item and keyword will be used as an criteria to query a SQL database. I'm familiar with SQL connection and running queries but how do I take the criteria and pass on further.

View Replies View Related

Using Cdate Function To Display Data Under Criteria

I am trying to change an existing function that currently only displays records that
fall under a criteria of

NOT(now>cdate(OTDate & ' 2:00 AM')

If I wanted to change this function to display entries that are before
6:00 pm the day before the OTDate, how could I modify this part of my
code? should is be something like this...

NOT(now>cdate((OTDate -1) & ' 6:00 PM')

View Replies View Related

Data Type Mismatch In Criteria Expression.

I am getting the following error and not sure what it means.

Microsoft OLE DB Provider for ODBC Driverserror '80040e07'

[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. /addgift.asp, line 18

Code:

View Replies View Related

Data Type Mismatch In Criteria Expression

I'm getting the error: Data type mismatch in criteria expression every time I try to run this bit of code:

View Replies View Related







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