I have a form that pulls a zip code and insterts it into a access database via ADO/ASP. When the data is inserted with a 0 in the front (ex: 03490) the leading zero is dropped.
Anyone know a quick solution for this problem, without having to add validation to the database (zerofill, etc) ie; some ASP function...
I am trying to implement an asp captcha on a contact form. The form action is set to activate another page taht contains the script for mail. I found the captcha code from the web. I have tried to implement the code into my form but i am not having sucess. I am new to asp and vbscript and therfore i am out of my depth in finding a solution. I was wondering if anyone on this forum could help? Code:
I am trying to pass a hidden field value on a form into another field on the form so that it can then be inserted in the database, to enable me then to reference that number at a later date.
(The hidden value (1 for example) would then automatically get passed to the other input field.)
The code for the text field that allows users to type an number into it for submission to the db is below, but what code do i need within the hidden field to populate this text field below so that users do not have to type the number in? Code:
I am trying to get my aspcaptcha extension for dreamweaver to work but I am having some trouble figuring it out. I would show you the dreamweaver extension that I am talking about but I can't post links since new users aren't allowed to do that. One of the requirements is to have a processform.asp page. Can somebody give me an example of how this would work? As I understand I would have the contact form page with the captcha image. If the correct code is entered it will go to the process form (which is supposed to take all the data from the contact form and email it to me) otherwise it will go to a failed authentication page.Anyone have any examples of a processform.asp?
I have a form that is working fine, CAPTCHA and all, is there a straightforward way to allow the form fields to remain filled in when the form does NOT validate through CAPTCHA.when real users just enter the wrong code and need to try again
I have written a classic ASP calendar that has been on my organization's website for a couple of years now, and it has worked fine.
I do all of my writing to files on my hard drive, then when the files are working properly, I upload the files to the server. Therefore, the files on my hard drive should be identical to the ones on the server. This has worked fine in the past - I have had two fully functional calendars, one on my hard drive, the other online. Until now, they both looked and worked identically.
Now, I'm trying to modify the main file, "calendar.asp". It no longer works, and the online copy still works flawlessly. When I looked at the local file (calendar.asp), all of the ASP code had been stripped from the file. Of course, the online copy is still intact and working.
The only editor I have used on these files is Notepad (actually, Notepad ++, an enhanced Notepad). I would understand if I had tried to edit the files with Frontpage (I'm using Frontpage to upload files to the server, but that's all I use it for), but these local files haven't been touched by Frontpage.
What Gives? How can a file selectively remove it's own code and disable itself??!!!
I try exporting the files from the server, and though the server files still have their ASP code, the browser can't find one of the include files, which is plainly in the same folder as the calendar.asp file. The file "adovbs.inc" is no longer reachable from my hard drive, even if I export ALL of the files in the "calendar" folder to my hard drive.
What can be hoseing up my local files, and how can I prevent it? Although I have downloaded ALL of the files from the online copy to my hard drive, why do the files behave differently than they do online? What kind of trickery is this?
I have come across an interesting problem. Let me first state that I am not a fluent ASP programmer. I am a network engineering trying to port an existing app. The app in question is currently running on IIS 5.0 (2Kserver) in a NT 4.0 domain. I am moving it to an IIS 6.0 server in a 2003 Active Directory domain.
My app calls this variable <%= varUser %> and brings the users login name to the web page as well as using it to pull data specfic to that user in other parts of the web page. When logging in as a NT 4.0 domain user all is fine. When logging as an Active Directory user is drops the first character of the user name example "ser" instead of "user". Any ideas?
I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works fine, however, when the checkbox is only field that has been modified/clicked the form doesn't always submit. When it does work, a Stored procedure is passed form variables and updates to the db are made. When it doesn't, its as if the form wasn't submitted, it reloads and resets the page, but the stored procedure isn't triggered.
How do you make a form field's value be determined based on the page URL?I've seen sites that you can change the URL like this (given "UserName" is the name of the field):
Then when I clicked to visit this page, when it loaded, the value of the UserName field would be preset to baseballdude_.I've tried doing this for one of my sites, but it doesn't work. Is there some way of enabling this?
I have a form that users fill in, thefirst field is a username, which must be unique.Currently only when I attempt the Insert into the DB does the restaint inform the user that it already exists.Is there any way i can check , let say onblur, if that username exists, so that they dont have to complete the whole form before being informed?
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'm trying to make a simple Feedback Form using that CDONTS thing I read about (in that "How to use CDONTS" thread). Every works like it should until I try to step it up a little and get the information from a Form... Code:
I am trying to create an upload form field in asp. Below is my code. When I try and access the form I get the following error. Does any one know whats wrong with my code the error I get is
We have a shared hosting plan (Windows-based) with GoDaddy.com. GD.com has a "generic" form mailer script (gdform.asp) that allows us to set up a "Contact Us" page, which, when the user clicks "Submit" sends an email to us.
I am a complete newbie re asp, but looking at the code, it looks to me as if a error is generated if any of the fields are left blank--which is good. I don't want to be getting emails that don't contain messages, or that don't contain a return email address.
However, submitting a completely blank form results in me getting an email with blank response fields.
Can you take a look at this code and tell me if it should be allowing blank fields to be submitted? Are there any changes that can be made? Code:
I would like to make two field in a for required fields. Do you all know a simple way to accomplish this? I can post form and any asp if needed( page is getting really huge).
I have a form field on an ASP page and was wondering if I can require the number that is entered to begin with a 0 or a 2.If the number starts with anything else,the user is notified to update the number correctly(Your [FormField] must begin with a 0 or a 2, Please update your entry).
Is there an ASP equivalent to Javascript's '...focus.();' that returns focus to a form field? I want to accept input from a user on a form.This input is to be databased and also unique. I want to check the user's input against what already exists in the database. If the input already exists.
I want to generate a pop up dialog box ala javascript and then when it's acknowledged, return focus to the form field.
I'm using MS database editor.When the db is updated ("submit") I want to send an email to an addrss in one of the fields.The db update function works well.
I'm trying to figure out if it's possible to use an email-processing page for different forms.For example, having a feedback as well as a contact form page.When the user fills out the form I would like it to be processed on the next page,which will display all the completed fields as well as email them to the recipient.
I can do this with just one form,but what if I'd like to use the same form-processing script with a different page and then another without having to specify particular form fields.
This is done in CGI.I looked at Matt Wright's formmail script but I don't know if the same carries over to ASP.
I know that the order of from fields from a form post are somewhat random. But, what about fields that have the same name -
<input type="text" name="something" value=""> First Choice <input type="text" name="something" value=""> Second Choice <input type="text" name="something" value=""> Third Choice <input type="text" name="something" value=""> Fourth Choice
First = "bananna" Second = "orange" Third = "" Fourth = "apple"
Will the values, in the delimited list contained in Request.Form("something"), always be in the order they are in the form? That is - bananna, orange, , apple
I have a form where the user enters a customer name, then clicks the submit button which then adds it to a database. This works absolutely fine untill the name has an apostrophe in it.
eg when the name entered is O'Hanlon and its submitted, I get this error.....
Microsoft JET Database Engine (0x80040E14) Syntax error (missing operator) in query expression ''O'Hanlon'
I have a form F1, once submitted it goes into another form F2, I want the fields in F2 to be filled with the values the user filled out in F1. in php I would use the $_POST[] to get it, but I dont know nothing of asp
and from what I could find on the web, would this work?
and what if they accessed the page directly, rather than through a previous form, would it field appear blank? or do I have to have an if statement. also what if based on the F1 value I want to select (check) a checkbox/radiobutton or drop down menu in F2?
I have a asp form that has a dynamic drop-down box that a user selects a value from. Once the user makes a selection I use the onChange event to capture the selection and pass this value to a vbscript sub.
The sub then makes a adsi query using this value to retrieve additional information. This all works. I used a msgbox to display the retrieved value and it is correct. My problem is how do I update a field on the form with this retrieved value?
I'm trying to verify a request.form("blah") with a field (value) in a recordset taken from an Access Database. Basically what I'm trying to do is once this NUMBER is entered into the form object (textfield), check a database to see if this number has been used (i.e. in the database) and if so redirect them to an error page.
I thought this would be rtight, but doesn't seem to work
If rsTeddyCheck = Request.Form("PersonalID") then response.redirect ("Error.asp") Else process.asp End If
So I figured maybe it was something to do with the script tags so I tried using the <% %> tags instead and I got an error saying something like Microsoft VBScript runtime object required.
I' m getting a (0x80040E2F) error, if I submit my form, with blank textboxes to my update stored procedure. The stored procedure expect values, so how can I detect if a form field was empty. I've tried testing to see if the form field is null, blank and to count the characters, but I can't get it working. My SQL table allows nulls, so it's not that.
I am designing a shopping site, in the picture the #1 section is a check box behind product name that customer can select that product to buy in #2 section the customer can set quantity of the selected product ok now codes this is the code which I have used to pull out produts and categoris from database and show them on the page Code:
I am using ASP, but javascript will be fine, basically I am looking for a very simple validation which will check the field below named= "LotAmount"...