Input Form For Creating Hierarchy Structure
I'm trying to create an input screen that allows users to create a hierarchical structure as the one below, but have no clue where to start or how to construct it. Code:
I'm trying to create an input screen that allows users to create a hierarchical structure as the one below, but have no clue where to start or how to construct it. Code:
I developed a site using .htm extensions ie: index.htm, about us.htm etc. I then decided to incorporate some .aspx pages so that I could allow access to certain .aspx pages by certain user groups. I expect the site to load up to the index.htm page and then from there, the user can select to log-in and be directed to the login.aspx page if they have the login rights.
This doesn't happen, instead when the site loads, the login.aspx page loads first. I thought index.htm pages would load first, but is the server recognising the login.aspx page as the index page (default.aspx page) and why? What do I have to do to ensure that the index page loads first?
How can I create a query based on the form input. I want to have a pulldown menu (list of states). The user can select the state, lets say VA and click on "go" button. I want the page to return results that has state=VA. So how do I create that statement and send to aspx ?
View Replies View RelatedI want to have a form like a table of record. If I let user input number of record to be insert in advance, how can I make a form that having number of rows of input? For example:
Number of records : 5
Then I need a input form like a table with the column and 5 row like Excel format.
The form:
Title Row : No. | Dept ID | Emp ID | Base Salary |
Input Row1 : 1 | | | |
Input Row2 : 1 | | | |
Input Row3 : 1 | | | |
Input Row4 : 1 | | | |
Input Row5 : 1 | | | |
I'm thinking all my input will be array. Then when user submit I'll split it and insert to DB. Code:
I have been ask to try a create a form on my works website to allow
teachers to fill it out the click button that emails to the boss
I thought asp is what need so i am very new to asp and with a lot of reading
from the net and books i got it to work :) but i tried to get too clever and
sent the user info to a page so the user can check for errors before
emailing but i cant figure it out and by fiddling too much i have stuff it
completely
can it even be done input info into form post that info to a new page
and then if the info ok email
i've recently done a basic website offline and haven't uploaded or found a host server yet. however i was wondering if there is a way to process the form input offline. I was told i need ASP functionality. but i'm not too familiar with it.
View Replies View RelatedI have a form which inputs info into a database. However what I would like is to populate a select box directly from the dbase. When the form is entered the field is updated along with all the other info.
I have enclosed two of my pages - I think I'm nearly there.
I've got a form inserting some data into the DB.
When I try to insert data with "'" in between, say Dummy's.
I get an sql syntax error.
Heres my code:
strTitle = CStr(Request.Form(txtTitle))
sql_insert = "INSERT INTO db VALUES ('&txtTitle&')"
I can insert any data as long as it doesn't have "'".
Is there anyway I can go around it?
I am designing a website for a friend that has a backend database that holds information on all the stock they have and this gets displayed onto the page no problems.
The only problem I have is when they add new items to the database, a part of the form is a textarea and in this teaxtarea they copy generated code from paypal (a form that is generated by Paypal as a add to basket button).
The problem I have got is that if you try to add this textarea to the database field what you get is a image of the paypal button and no code.
I have tried the replace function, concatenated it in comments etc but all i get is a blank field or a image of the button.
I have a HTML page with a form on it. I have an ASP page that processes what a user has entered into the form (updates a database etc).
I now need a page that fits between these two pages to pre-process�the users input. I need to do it this way because I am not allowed to change either of the two existing pages.
I know how to read what the user has input into the form and I know how to pass control onto the next page.
What I have not been able to work out is how to change the user input and have those changes passed onto the next page as if nothing has happened (that is, the original ASP page just performs its request.form(�item�) calls as it always has but instead of seeing what the user actually typed in, it should see the changed text as created by the new pre process� page)
I have tried using a regular expression replace but can only successfully make this change a variable and not the original form input. Equally I cannot find a way of swapping the original form input string with the output variable from the replace.
Does anyone have any ideas on this one?
i have fixed my code and there was no error at all, it executed well and the msg "The quote has been sent" appeared. But although it was working, but it seemed that it didn't really sent the Firstname and Address to the email. Why? here's my code :
View Replies View RelatedI'm working on a form where the user is not required to fill out every text input. How mught I check for that in an ASP script. Here's what I have:
If Request.Form("mp3title1") == ""
amnt = 0;
Else If Request.Form("mp3title2") == ""
amnt = 1;
Else If Request.Form("mp3title3") == ""
amnt = 2;
Else If Request.Form("mp3title4") == ""
amnt = 3;
Else If Request.Form("mp3title5") == ""
amnt = 4;
End If
Pretty straight forward, its checking in order if the first element is left blank, is the correct technique:
== "", or is there more to it?
how do i allow the user to add in a value that has a ' in it (e.g int'l) apperantly if i do that there will be an error... how do i go about this?
View Replies View RelatedI want to send the data from a user's form input in an ASP email. For instance, shen the user submits their name and email address on a form, I would receive an email with those fields mixed in with a plain text message. How can I do this?
I have programmed extensively in other languages, but not ASP (our company is switching from ColdFusion), so I will need my answer in fairly introductory ASP terms.
How can I specify formatting restrictions for special fields like Postal Code
(format X1X 2C2) or date input field MM/DD/YYYY? I have Acces DB with these specs, but when I used FP2002 Database Interface Wizard, it ignores these. Also I am unable to "edit" any of the records utilizing pages generated by this wizard.
There is an error that it will not accept empty fields. I have no problem adding data (even if some fields are empty) or deleting records.
I have a form, where the user types their initals and it then returns some results. However, the Oracle database requires the initials to be in capitals, how can I convert the user input to upppercase?
View Replies View RelatedI'm developing an account lookup, mostly in ASP, that displays a list of radio buttons to select one account from those found in a recordset. Here is a snip of the account display, after the recordset is populated: Code:
View Replies View RelatedI'm reading data from an XML form and prepopulating a FORM. For the text inputs I have no problem prepopulating the Values from the file...
document.forms[0].elements['FormName'].value=xmlObj.childNodes(0).childNodes(0).firstChild.text;
But one of my fields is based on input from a radio input (three inputs with a value of 1,2,3). Since they all have the same name using the code above will not set they value for any of them. Anybody else run into this, or have a suggested way I should do this.
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
zip table
id, zip, contactid, city
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
zip table
id, zip, contactid, city
I am going to have a form on one page that will have a bunch of options(checkboxes, radio buttons, text areas, text fields, etc.) and these options are going to deal with a certain category. Each category will have different options. Now after this form is filled out they will then proceed to another page to fill out contact information. Name, Addy, State, City, etc.
Now, after they fill this contact form out they will submit it and then it will go through a database and depending on what state and county they are in it will email the information from both forms to the email addresses in the database that match that state and county(as well as category). Now dont worry I aint wondering how to actually search the db and all that yet.
All I want to know right now is how do you remember the first forms information while you go to the second page to fill out the contact information? Using cookies? What? I dont want the form input to be displayed on the second page, just remembered.
So I will select all my options from the first form and fill out all the text areas and fields and all that then click on the Next button or whatever, then fill out contact info.
How do I get it to retain BOTH forms information, and for now just display both of them on a third page(like I said I will worry about the db query and email crap later). I hope this makes sense.
I would like to exclude 2 or three input textboxes (hidden ones) from being
included when I click the "submit" button on a form.
write a simple function to check the user input from a form. I need to check that the string contains only numbers, has a maximum leght of say 15 and that the first number is zero.
View Replies View RelatedWhat i have so far is: Code:
if(if something in search field){
do all this
}
else{
display all because first time run
}
As you see when People first run the program i wish for all books to be displayed which is taking place in the else{ } because the searchfield is undefined! however if then people click search with nothing in the search field i dont want all books to show but an error as they are searching for nothing. See where the above would trigger and show all.
its also important people can press "return" to submit as well and clicking the button so seeing if the the button is undefined is not an option! as if return is pressed it dont value the button being pressed. What are my options ?
I need a function for blocking or converting letters inserted into a Form to digits, since the Data will be used in mathematical functions.
Is there a specific seach-function for letters, or:
If Input1(not a digit) then...
Else... Input1 * 5...
?
I'm developing a website for a software company. They want to publish news, tip/tricks and other articles on company's news section. I would like to get advice on how to name the individual article files? (There will be 1000s of them) . how to let the user query it? (i.e. news/index.asp?articleID=234544 or what?). I preffered a standard way to do all this. Pointer to any sample or tutorial on this.
View Replies View RelatedI've been trying to update the web-site for the local orphanage (www.bedaya.org.my) via FP2002. This whole project started on my humble Win98 and FP2000, then I've upgraded to an XP and FP2002. Without reading any on-line docs, I've simply reloaded the website from HD (via C:Inetpubxxx) into FP2002. It seemed OK.
Did various changes, and tried to update the web-site version (via 'Publish web'), and kaBoom! My shared borders (top, left and bottom) all now contain the page's text! So now there are 4 main text repeated, thrice in the borders, and once where it should be.
I thought maybe FP2002 did a terrible job at merging the navigational structure (NS), so I tried 'publishing' EVERYTHING all over again and asked it to 'overwrite' the existing NS. Took well over 4 hours on a slow 56Kconnection, and the result was the same.
I am currently making a form in asp and when i make the text boxes they are all formatted to the same size, even if I use the width=*** to change the size? Is there another way to make the input text boxes smaller or bigger?
View Replies View RelatedI want to know the structure of SQL server database table using ASP.Is it possible to know?I want know the exact datatypes also.
View Replies View RelatedWe are devloping an b2b site that is in eglish. the site is working for about a year till now and we have decided to add a new local arabic version. it was developed using asp and sql and we have some kind big dbase.
1- the site offer products and services that are stored in the dbase. the user will switch between languages and should find all information in the choosen language. that means the dbase will contain 2 versions of the data with the same id so we display the inofrmation related to the language.
2- the layout will be in both languages. keep in mind that we almost have more than 1000 file of codes so any changes or enhancement should be minimum. 3-i am posting right now to find out the best way to make the work time minimum for now and future
here is the options i have in mind
1- create a folder for arabic and copy all files in it then modify them
2- add the language to the same files and choose between them by passing parameter then use the code for the paramter i am looking for the best way to create the arabic version and any comments are welcome.
I'm fresh out of the box when it comes to .asp, I've basically had a website thrown at me with the instruction "make that work". So, I have been given a cd with a site on it that I know works, (albeit on a different server) and I have uploaded it to my 1and1 server. I have been given the registered url, but dont know where to point it within the servers directory structure....which looks like this;
URL
I'm ok with HTML and some JAVA but all this ASP leaves me behind.
I need help creating a form for my website. I want to use an ASP page. My form will contain a few text boxes for name, a dropdown list box, and will have a "browse" button so that users can upload documents/files. Would also like to add a confirmation ASP page upon successful form submit.
View Replies View RelatedI want to create a Expandable and Collapsible Directory Structure Tree. So that it looks at a folder from a path i give it and shows all directories and files underneath it.
This sub directories needs to be expandable and collapsable and when i click on on of the options it will bring a select box up by the side of this giving options. ie edit page.is this clear?