I am trying to build 1 hidden input field only, the input is inside a while not EOF loop,
currently the code above is building an input field from each product record, so i get one hidden input from each item, what i think i need it to do is build a string from the records and then put it into the input field i.e. the final input field should look like this: Code:
I have being working with making an edit field over the past few days. The edit function is now working fine. The edit fields that i have are for id, subject, notes, timedate.
All of the edit screens are one line text screens. What I want to do now is increase the size of the notes box to a larger textarea type box to make it easier to edit notes. The notes field in the db is a textarea field. Code:
i need to track the source of a page which user browses ex: aboutus.html, contactus.html in which there is a link to enquiry.php where a user fills out a form. so i need to track which page the user originally came from(aboutus.html or contactus.html)
presently i am using enquiry.php to track the previous page with the following code
i need to know what is the syntax in ASP for the above statement so that i can read the hidden value into a variable called source using Request.Form and later i can read this source variable in php
Can someone tell me if it is possible to store the contents of a TEXT AREA field in HIDDEN FIELD in another page after the initial form containing the textarea is submittted....
I need to do this to seamlessly present the submitted data in an attractive format while hiding his submitted data in the hidden field...but I am not sure if there are restrictions of eg 255 characters for a hidden field?
I have a page created by using response.write. I just found out that if I put a <input type=hidden..> within a <div> section, this <input ..> could not be referenced in the javascript. Becasue when I used the document.form1.tageName.value, the system will respond as an undefined. However, If I put this <input type=hidden..> outside the <div>, thenit is OK. The basic structure of the page is like
I currently us JavaScript to populate a hidden field with my scroll location in order to retain the page location when I post the page back to itself. However, I don't know how to pass that hidden field value in a hyperlink as the value is always changing. Anyone have any suggestions?
i have two asp pages, one collecting value in a for the other displaying those values.
Normal non-hidden text fields are displaying properly. But my hidden field is not. The hidden field is made up of 3 other text fields and joins them together. This page collects and sends values (i only included the item in question) 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 have built input fields inside a while not.eof loop and the name is built from using <%="name"&i%> and the value is a product_id from the database.the i is then incremented in the loop, resulting in <input name="name1, <input name="name2 and so on. this works no probs, however i haven't got a clue on how to collect this dynaimcally named input field when it arrives at the form action address page. I was thinking some kind of for loop but am not sure, and again am not sure where to put the <%="name"&i%> bit to count or grab the input fields info.
how to validate a field to make sure that its numbers only. Its basically a form that asks for the user to input the scores. Now , i realiase that you'd have to be fairly thick to enter a letter as the score instead of a number but, i'd like a tidy error message instead of the type mismatch error (that could confuse newbies even more) just incase . I looked into javascript validation but, i really need to do it serverside .
I have an ASP that retrieves data from a SQL server database. Most of the columns are varchar. Some of the fields are meant to populate input fields. Here is my code.
<input type = "text" name="comments" value =<%= rstSimple.Fields("comments")%>
the value is returned, but only the 1st word. It seems it cannot process a space, but when I add the following to a table;
<td><%= rstSimple.Fields("defects").Value %></td>
the whole value is returned. Is there a limitation to the input field and how can I change it?
I want to create some text input fields which they should all have the same size regardless the browser version or type. Because my text input field looks different in size if I view them from a different computer. Is the following coding should solve the problem?
How to search a database field from form input? is it easy to do i like to have a html form from an html page that will call an asp page to do db search, if user enter a zipcode that match in the database it will pull all the infomation from both talbes and display on the screen
i have 2 tables related to each other contact table id, fname, lastname, contactid, email
How to search a database field from form input? is it easy to do i like to have a html form from an html page that will call an asp page to do db search, if user enter a zipcode that match in the database it will pull all the infomation from both talbes and display on the screen
I have a website with a Guessbook section. Lately I noticed someone copy and pasted a long http address to promote viagra.. I believe he simply copy and paste the whole link into the text input field and submit several times. It created multiple entries in my guessbook.
How can I prevent this? I was thinking if it is possible for me to write some code to disable people using the control-p to paste text in my text input field.. Can I really do that? What other options do I have?
what i want to do is to put 2 fields in my table , username and password
what iwant to do is to create a page that ask you to unter your username only ,and when u click submit the other page will add new record for the username u enter and will input a randomly alpha(letters and numbers) to yr password field , so how can do this random thing throw the asp"!?!
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change the input names each time it loops. Here is the code:
I have a recordset that I loop through all of the data within a table, within the same loop, I am trying to add another loops that pulls information from the first recordset to base the second recordset off of: Code:
My work has decided to give me the job of building them an intranet. Being pretty new to .NET and ASP in general I was wondering if anyone knew of books or sites I should take a look at that might help me get started.
I built an ASP Form and I'm using CDONTS to e-mail the results to me. After the user clicks on the "Submit Form" I use ASP to send a ConfirmMsg back to the user.
At the same time I would like to send back a Hyperlink .
The Hyperlink will take the user back to some other part of the site, For Exampe I want to send a hyperlin to http://www.mydomain.com/index.html
I want the link to appear after the Server processes the ASP Form.
Can anyone help me with the ASP code fot a hyperlink.
When assembling an HTML string from a database before sending it to the client (ie keeping the connection as short as possible), adding to an existing string (strOut=strOut & strNextLine) takes time and can defeat the object.
Is putting each line into an array, and re-dimming the array by +1 each time quicker? Is there a better way?
This works just fine. BUt what I need is to add code to the onclick such that
document.GetElementById("matchmakername")=""
THe darn quotes/syntax are messing me up and I can not get to work. The challenge for me is that this is part of an asp string assignment to a variable called matchmaker details.
I have a database of quotes on my website that uses an Access 97 database (I'm cheap...I have an old copy of MS Office). I have one page that builds a form <select> from a SQL statement that looks like this: SELECT DISTINCT last, first FROM quotes ORDER BY last, first;
The results are 1,250 records from a 3,700 record table.
I loop through the records, using each to build an <option> for the <select>. When loading the page, it gets to the <select> and then it's like someone issued a response.end, because it just dies after about 3 seconds. and I get an incomplete page; looking in view source it is literally truncated right before the form <select>.
Of course it works at home, but not on my "production" site.
I've tried all kinds of things like executing a stored Access query as adCmdStoredProc, but it didn't help. I'm not even sure if that method was even any faster when I ran it at home.
Is there anything else that you folks know of that I could try, or am I just going to have to bite the bullet and come up with an alternative way to let my users select the source of the quote?
I have an old web app that ues an Access database and ASP 3.0. I need to build an INSERT statement based on the contents of a form. What is the best way to handle blank text boxes that are submitted with the form?
For example, I collect all my name/value pairs that are submitted with the form like this... Code:
I am building an application via ASP that uses an MS Access database to hold inventory for large truck dealerships. I have two columns in the database, one for thumbnails and one for regular (about 450 pixels wide) sized images. The columns in the database hold the URL's to the images in the folders. I need to create a photo upload that accomplishes the following things: 1. Will re-size and rename the photograph regardless of what the user has it named and sized as. I would like to be able to have the code create the thumbnail and the larger image if that is possible. 2. I need to be able to have that photograph attached to the inventory information that goes with it. I have a very basic page built, but of course, it does not do any of the "fluffy" stuff I mentioned above. I am not very good with VB and most of what I have seen out there is really contingent upon knowing VB. I tried using a 3rd party application, but to be quite honest, it sucked. Having said that, can any of you point me in the right direction toward having the above features?
I build the above link dynamically from the customer's input. It works fine until they put inthe '#' symbol. The result is the string works up to that point, then breaks. The trailing information is lost. I use the above to fill-in form boxes. What can I replace '#' with that will allow the string to continue? ... and of course, be placed in the form box correctly.