Copying And Saving Previous Course Info In ASP Form
I'm currently working with an ASP page that populates rows based on a
query for course data by using a DO WHILE NOT EOF loop.
An improvement I'm adding is a dropdown populated by query which shows
each course number, so that the user can populate that course page
with data from a previous course.
My question is: once the data from the previous course is populating
the current course page (after being selected from the aforementioned
dropdown), how can that data be saved to the current course's row in
the table? I've tried pulling the result.querystring to get the
CourseID of the current course, but for some reason the changes don't
save.
Would there be a better way to copy data from one row to another in a
table? I am wanting the user to be able to preview the data as it
populates the form fields before saving, if possible.
View Replies
ADVERTISEMENT
My page shows details of a work request. It has a number of buttons: one to go to a search page, another to make a copy of that page, and so on.
What I want the user to be able to do is, click the 'Copy' button and have the details from that page passed to ANOTHER page, ready to submit a new request. Basically, it's just a quick way for users to submit new requests, using a previous one as a sort of template.
This all works using a client-side function in the details page, which simply calls the submitting page using document.submit. However, this uses the same browser window, overwriting the "old" page.
I want a new window to open and have it read the session variables created by the details page. I've tried 'meta http-equiv='refresh' content=1...' and, while that opens a new window, it doesn't read the session variables. Similarly, the gazillion JS scripts I found on the web do pretty much the same thing.
View Replies
View Related
I want to display multiple records on a form. The user has the choice of editing 1 or more records and then saving the changes. What would be the basic code I need to save the changed records? How would I capture the individual changes?
Right now the only thing that I can get to save is one record per page, not multiple records on a page, because the request.form variables come in in an array format when I put more than one record on a page.
View Replies
View Related
Iam facing a problem in saving a particular form to ms access datdabase. Iam preparing an enquiry form and want to host it onto the company's website, but Iam not able to save the form to a database. The code is as follows: Code:
View Replies
View Related
i have built an interface for template making. i am using a simple form with a text area and submit button to save the code, i want to show in a template page, into the database.
I also use the same textare to view any code saved to the database for a specific page.
THE PROBLEM - i have to save a
response.write("<textarea..............></textarea>")
the minute i paste it into the textarea it saves it fine but shows it wrong as if once it reads the </textarea> in my saved code the main page 'closes' the main textarea . i.e. the rest of my saved code is shown as part of the page - and its not pretty!
View Replies
View Related
I have an html form where a serial # is entered and goes to an asp page to determine wether it is a res or comm number, then directs to another form where they can finish entering info to register the serial number. I want the second form to display the serial # entered in the first form. How do I do that??
View Replies
View Related
I have .asp page that have a form. When form is submitted it's stored in Database.
How can I make it also send an email like to some spesific address when the form is submitted?
I already have .asp file that is some sort of a mailer and it works. But what should that button Submit have to pass parameters into that .asp and still continue what it would be doing?
View Replies
View Related
I want to create something similar to what is on this site below in terms of the dealer location.
I don't even know what to call this form to be able to research it on the web or even on this site.
View Replies
View Related
how do i use the method=get command under the form string in html. How do I get it to display info? Sorry if i sound like an absolute noob its just something I've never used before.
View Replies
View Related
How can I get contents of a web form transferred to an ASP page. i.e. the form variables? I tried using Server.Transfer with the preserve form parameter set to true, but this created some wierd .NET framework error.
View Replies
View Related
i have been trying to get info from a form into a database on the server for months, i have one form page and one asp page that should send the data to the database on server heres is my code for both pages. here is the form page:
<form action="deantest.asp" method="POST">
<input type="text" name= "name" ><BR>
<input type="Submit" value="Submit">
</form>
and here is the asp page with the code that i use to put the form data into the data base.
<%dim strformfieldvalues
strformfieldvalues =request.Form("name")
response.Write ("your name is ") & strformfieldvalues%>
View Replies
View Related
I am working on a little project and my knowledge of .asp is very small. From what I am looking at it looks like my form should be sending correctly. Can anyone help me out w/ some code for an sendfile.asp that could send this form information to an email address?
I am copying the exact html from the page onto here...sorry if its a little long its really only like 6 different inputs....
View Replies
View Related
Except for extremely basic ASP programming that I did two years ago and have forgotten I have not touched coding since!
I've taken a look at a couple of tutorials but they all baffle me!
Can anyone tell me how I can just create a simple html form with input fields of FirstName, LastName, Email and Phone amd when the user hits submit it is recorded in an access database?
I can do the HTML part fine. And I believe I've set up access ok although Ive never used it before.
Also, if the server that the database will go on is a Microsoft one i suspect that is ok? Im not sure if all i have to do is upload the database and it will work? or do i need to talk to my hosting company to set up some kind of odbc thing that ive heard about?
My database will just be called clients.mdb and the table is called Customers.
View Replies
View Related
I want to write the info on a form to a text file. Code:
View Replies
View Related
I have two forms, one on each page. The user fills the first, then the second, then on the third page all the information is displayed for the user to make sure thats what they want to send.
Then they click submit on the third page and it goes through a database and depending on which category, state and county the user selected it will email all the information displayed on that third page to all the emails in the Email field in the database.
Now, I already have the first and second pages(easy enough) and the third page I can get it to display all the info how I want it and now I need to know how to go about emailing that info to the emails that match the specific fields? Right now all I have it doing on the third page, instead of submitting it for emailing, it just displays the info from the forms AND emails that match from the database. Code:
View Replies
View Related
When I try to save any ASP page, I get the message that "The page will not save correctly". Even though I go ahead and when I go offline the space of images is blank.
I have this website also where I am using ASP pages and my users are facing the same problem. HTML page is created but images are not saved.
What changes are required in ASP code so that images are also saved.
View Replies
View Related
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
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
how I could copy the URL displayed on the browser..I want to copy this url and store it in the variable.
View Replies
View Related
I got a folder name f1 in server. I need to copy same folder and paste it in same root dorectory. Can any one help with asp code for it ....
View Replies
View Related
I am running into a problem for copying files between 2 different servers.
I am using the following lines of code to do that, but I get a 'permission denied' error
Set fso = Server.CreateObject("Scripting.FileSystemObject")
strSourceFile = "server1file1.doc"
strDestFile = "server2file1.doc"
fso.CopyFile strSourceFile,strDestFile, true
View Replies
View Related
i have two tables.. i need to copy all the info from one table into another one, which might not be empty.table two includes the fields in table one, plus more.
how does one go about doing this? Also there are a few rows to be copied at a time.
Does anyone have an example? or can you refer me to any other threads?
View Replies
View Related
Hi how do i copy a file from the server to the PC?
Const ForWriting=2
strPath = Server.MapPath("datos.xml")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set oFile = fso.GetFile(strPath)
Set tso = oFile.OpenAsTextStream(ForWriting)
sob=1
CopyFile "datos.xml", file://c:/datos.xml, sob
View Replies
View Related
I'm not sure if this is the right place to put this but, I have 2 servers dev and prod. I want to copy files from dev to prod and I want to run this with windows scheduler every so often. I have an account on the prod and the script has to be run on dev. Is there a way that this can be done
View Replies
View Related
Is there a way, to make a page that gets info from a DB using scripting. then take that page, and copy it to another folder, BUT, not having the script there. making it become all html? so the page would contain html, but would be the result of what was
scripted. so i guess i am saying, that the page would become the source.
View Replies
View Related
how do i copy a file from the server to the PC? I have this code but it says that type mismatch 'CopyFile'
<%
Const ForWriting=2
strPath = Server.MapPath("datos.xml")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set oFile = fso.GetFile(strPath)
Set tso = oFile.OpenAsTextStream(ForWriting)
sob=1
CopyFile "datos.xml", file://c:/datos.xml, sob
%>
View Replies
View Related
i have a "temp" table and i need to copy all records to the definitive table, since both tables as the exact fields how to do add the recorset "temp" to the recorset "final"? i know that to delet the all recorset is just to call it and then do a rs.delete, but i'm not shure about the code to do this.
View Replies
View Related
i want to copy a file(.jpg, .swf ...) on the web, to my server. how can i
write this function? it should take an url of a file and past the file to my
server in related folder.
View Replies
View Related
I am creating a text file on the server which once created I need to then copy to another directory on the network.
View Replies
View Related
I'm simply trying to copy an intranet database file (VesselConfig.mdb) into the same directory but rename it something else (VesselConfig2.mdb).
Here's the code I have so far: Code:
View Replies
View Related
I have looked on the net, but obvious not in the correct place for this.with this mega tourney site i am working on, i am thinking of several ways to do this efficiently.
so what i want to do, is when a new tourney is created, create a folder on my server that is named the id number of the tourney. this is the easy part.
next, i will have a temp folder with all the tourney files in it, that i would want to copy to the new folder. but i have not found a good way to copy these files.can someone stear me in the right direction?currently, i have been using querystrings to determine the correct id, and it is working fine. i just think that doing it this wat, would be easuer to keep each event seperate.
View Replies
View Related
How can i copy GIF file from another server to my server?
View Replies
View Related
On one of my client's website customer's are uploading a few files each week using SA-FileUp. My clients wants that each uploaded file to be copied on another website he has got.
Any hint on how to copy one file between domains ? I was thinking about using AspHTTP which is installed on the original server but not on the other end.
View Replies
View Related