473,772 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

retriving info from a database and print it ind a form???

i have a page where info can be inserted in a form that consists of some
textarea and some textfield.

but when i get to the page, i want the last inserted info, which is saved in
a database, to be retrived and be displayet ind the 6 text field/area??? can
that be done?

the user can then edit some of the text and leave some of it unedited.....

can it be done??


Jul 23 '05 #1
2 1565
In article <40************ *********@dread 12.news.tele.dk >, "jeghers"
<sadkas> says...
i have a page where info can be inserted in a form that consists of some
textarea and some textfield.

but when i get to the page, i want the last inserted info, which is saved in
a database, to be retrived and be displayet ind the 6 text field/area??? can
that be done?

the user can then edit some of the text and leave some of it unedited.....

can it be done??


Yes. Do you actually have server-side JavaScript capability? If not,
you need to think about using something like Perl, PHP, or ASP to get at
the information in the database.

Whatever the case, you haven't given enough information here. What
server? What scripting language? What database?

--
Hywel I do not eat quiche
http://kibo.org.uk/
http://kibo.org.uk/mfaq.php
Jul 23 '05 #2
On Sun, 2 May 2004 14:37:57 +0200, in comp.lang.javas cript "jeghers"
<sadkas> wrote:
| i have a page where info can be inserted in a form that consists of some
| textarea and some textfield.
|
| but when i get to the page, i want the last inserted info, which is saved in
| a database, to be retrived and be displayet ind the 6 text field/area??? can
| that be done?
|
| the user can then edit some of the text and leave some of it unedited.....
|
| can it be done??


This can be achieved in the sql statements. To retrieve the last
record inserted then you would need to use something like:
rs.Source = "SELECT * from myTable order by fieldName DESC LIMIT 1";
rs.Open();

Your html page would set the default values according to the record
i.e.
<input type="text" value="<%=rs.Fi elds.Item("fiel d1").value%>" />

<textarea .... ><%=rs.Fields.I tem("field2").v alue%></textarea>
---------------------------------------------------------------
jn****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3237
by: Eric Kincl | last post by:
Hello, its been a while since I posted/looked here... my normal email client doesn't handle newsgroups :( (ximian evolution) I was wondering how you stick a file into a database, and then retrive it again for the user with PHP/MySQL. I tried the following which apparently didnt work... Very quick overview of what I did... html
11
1865
by: iffy agbim | last post by:
I have a form that displays information selected from an Access Data base. A select statement is used to do this on my asp page SQLQuery = "SELECT * FROM tblopgaCOm2 WHERE billNo = '" & Request.Form("BILLNO") & "' AND area LIKE 'AUDIT'" billNo and area are the 2 fields used together to make the record we need unique. example Bill d456(billNo) can be assigned to various depts(area). as many depts as it is assigned rep the many times...
1
1878
by: Kenshin | last post by:
Hey! I have another script where i pull all the information from the database and I want to send it to the person. What they do is they enter in their email, and if the email matches, than it will email them their login information. How do you grab the info and than use that info and put it into an email to send? Here is my code thus far for it:
0
2960
by: Pato Secruza | last post by:
Hi everyone! I have a really frustrating error and need help. I’m trying to do a function that gets the properties and names of the fields in a MS Access database using ASP. I haven’t programmed in a while so I’m quite lost. Once I have the my database structure I will insert the corresponding fields from a web form but the database is huge and I want to be able to change the database and form without changing the ASP code all the
2
2471
by: Manish Naik | last post by:
Hi, Using ASP.Net, I want to store and retrive documents (Word, excel, etc) from SQL Server 2000 database. I have tried image type data field, but could not succed. Can any one help me please. Regards, Manish Naik
2
7427
by: James Proctor | last post by:
Hi There, I have written an SQL script which i run though a VB.net application. It has some print statements in which print results of the Script to the message window if you run the script in the Query Analyser. Is there a way or getting these messages in vb.net. Ive had a look round but no one seems to have done it before. I suppose i could just write the results to another table, but i like the idea of trying to capture the messages....
6
1533
by: kavithadevan | last post by:
Hi, I am trying to retriving some datas from the database.using submit button i am getting result but i inserted one submit image and i gave link to that image and then i run that script but its not working now.Can u tell me using link how to retrive the datas. here i pasted my script ---------------------search.php-------------- <form name="form1" method="get"> <table width="200" border="1">
8
1963
by: Christina123 | last post by:
Currently working with Microsoft Office 2000 and whatever version of Access came with that. I am developing a database to track the comings and goings of shared tools. Everything works splendidly except I have printing issues, primarily I have no idea what I am doing. I have a form that contains the date and the info of the person doing the ordering as well as a subform that has the serial number of the part, the description and storage...
3
955
by: Semajthewise | last post by:
Hi all I have a problem with getting info from another forms textbox. All the other posts I seen related to it seem to say the same thing. And do not allieviate my problem. So heres what I'm doing and have so far. I have 2 forms the one I want to retrieve info from is called Realm and the Textbox is named Housing Using VB.Net 2003 Here is how I am attempting to make the call. This code is on the first form.
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.