I have this JavaScript code in my html file(search page) to check and see if any data is entered in the text field. If there is no data entered, there will be this box that 'pops up' to say ask the user to enter some data.
The problem is that when I enter some data into the textfield, it is suppossed to lead to the database which i have created. But in this case, when I enter some data into the textfield, instead of opening the .asp file, it just reloads the search page(html file).
What I would like to know how to do is take entered data from a textbox on a form and then use that typed in text as part of a SQL query. For instance I have a textbox (lets call it txtDate), and say someone entered "04/27/2004" into the textbox. I would like to then make a sql query call like: SELECT * from myDatabase WHERE scheduleDate = "04/27/2004" (<- Data entered in textbox)
This seems like it should be very simple, I have my database connection working and I can pull out all the tables and tables using Static Querys.
I have two pages in my Web system that works in such a manner: 1. Page A allows users to input data into the web form 2. Page B displays data from Page A and other additional info
Page A contains only data inputs of HTML types TEXT and SELECT.I'd like to have an "Edit" button in Page B where it allows users to be redirected to Page A to view all of the previously entered data (and edit the data from there).
Can I do this without using "Request.QueryString" or "Request.Form" commands? I can't use "history.back()" or "history.go(-1)" commands, because with them, Page A is shown with empty data in it.
I am storing user entered form data from an ASP page in a MSSQL 2000 database. I would like to give my administrators a way to download a tab file with the entries. Is writing an ASP page the best way to do this? And if so, how can I convert database records into a file that will download through the browser?
I am uploading a file using ASP code. After the user uploads the file, I would like to be able to open the file and check if the data is in a given format (comma separated) and also has all the data elements needed (i.e. all fields are there).
Is there a parse routine in asp that would allow me to do this. The user can upload any type of file as long as I am able to parse it and determine if the data is of the aforemention type.
i have 5 textboxes and 2 radio buttons in my form and one submit button.after filling datas in my form if i click submit button all the details has to go to my client mail inbox in the same format
for example
name :timmy age :25 sex :male salary:20000 designation:developer
in this format i will fill datas in my form and in the same format has to be shown for my client after sending mail this to my client.if my client open this mail he has to able to see entered datas in the same way i entered before sending.
I need to make a text field equal to the entered value. Example: First time to the page nothing will show up in the field because nothing was entered. I enter a value and submit the form. The redirect is to the same page to add new inforation but this time the value entered in that one text field will be there. I tried <%=Request.Form("box")%as the value of the text field but to no success.
Is it possible to take a value entered on one page and access it on several different pages? For example, I want the user to enter their email on the first page, make a selection on the second page, and the third page will display a form based on their selection on the second page. I then want to submit all the data entered on the form on the thrid page along with their email address from the first page to a database.
I have this page set up at www.kevinhall.org/headcount/headcount.asp what is the easiest way to check where the user has entered a value and submit the row to the db. Maybe i'm going about the form wrong. Each box has its one name but I was hoping i could get around using a request.form on each one and useing the isEmpty. Its so tedious and non efficient there has to be an easier way.. Maybe with .net possibly?
I got this login script and I edited it all and it seems to run fine...IE it listens to the script as far as permissions go when I place a restriction on a page and when you login it redirects. But first it doesn't tell you that you're logged in and doesn't provide a logout feature.
And most importantly if I type in a random username and password not listed in the database it doesn't seem to matter it still "lets me login"
I think it may have something to do with my database connection. I am using an SQL database/server ADO connection. But I don't know if I entered it right in the code. Code:
I've modified this form to my liking but would like to validate the fields as the user continues from page to page. Does anyone know what I need to do to the code in order for this work? Code:
ive gota a input box where i can enter in numbers- which load info from a db, but i want to validate the data entered so that the code will be able to show an error message when letters are entered. Is there any way of doing this??
how to compare the date entered in a textfield and the present date.i tried a sample program but it doesnt work and returned "not".its my first time to encounter date processing
code:
textfield value=1/8/2005 //what i've entered
if date_entered=date() then Response.Write("present") else Reponse.Write("not") end if
I'm trying to get my page in order using the HTML validator at www.w3.org.It reports problems in my using the ampersand '&' in the following statement. Should I be using someting other than the '&'..?
<a href="search.asp?title=Hot%20Stuff&artist=Bob&OrderBy=desc&status=av"> -------------------------------------^----------^------------^ Line 220, column 67: cannot generate system identifier for general entity "artist" Line 220, column 80: cannot generate system identifier for general entity "OrderBy" Line 220, column 93: cannot generate system identifier for general entity "status"
I would have asked the HTML group, but I figured they may not know ASP.
It's good practice to validate input, not only where it should be coming from, but from anywhere it's possible to change or add input for a "client". If all user input is transfered using "post" you can be pretty tough on querystrings, if you use them at all.
But user input could have a name like Mc'Donald, and we would not like quotes (wether single or double) in input to a database or an asp script. Though I beleive more dangerous in SQL server there should be (?) a danger with access as well. (The infamous SQL injection) Anyone with some "input" in this matter? Escape caracters? Haven't found any. Changing the caracter "scriptwise"? Maybe
how can i validate a string so that it have only the characters of ASCII 32 to 91 and 93 to 122 ? Also if the string contains the comma (,) the whole string should be converted inside the quotes ("")
i.e.
if the string is: example string, Ok,it should be: "example string, Ok".
if I could get some guidance as to the best way to validate a date entered by a user on an asp form format dd/mm/yy. The date is then stored in a Access table. I would like to validate it to prevent the unfriendly error message if date has been entered incorrectly.
I have a form that has 16 comboboxes and they all drop down the same info. what i need to do is get a javascript validation to check that non of the 16 comboboxes have the same value or un-selected.
Just wondering if you knew anyting about validating dates and when entering data into a database that already exists, how to bring up message boxes. I am currently using dreamweaver mx and its validation rules in behaviours is limited.
I need a message box to tell a user that what they are entering is not a date when a date is required, instead of dreamweavers microsoft access error, criteria mismatch or whatever.
Also a message box to tell a user that when they enter a record in a database that it already exists, instead of dreamweavers automatic error.
I am trying to take an xml file as an input from the user, providing the user a User interface where he/she selects the file they want to enter into sql database. Before updating the data in the database with this new data from the xml file, i want to validate it first to see if its in correct format, if it matches my schema. I have a schema file.
I searched for some examples online, but got examples only for asp.net. Can u give me an example how to validate an xml file in asp.
I am tryin to create a login page for my database,the user enters their username and password,their username and password is stored in a table how do i check that a user has entered the correct username and password before allowing them to access the next page
I have an asp page that has a form and only 1 field which is know as the ID field.
I only want users to enter an Integer value in the field. If they enter anything else it should come up with a pop up box error and not allow them to process the page.
I am trying to sort out validation for a form to display the error message in sequence. ie; when you click continue with blank form fields the first message should read: "Please enter your previous address (Line 1)" but instead it starts with PostCode then time at the address then town? Code: