Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving records from a database

Status
Not open for further replies.

lmarshall

MIS
Jun 11, 2002
108
US
I have a page created that is a guestbook. Add a button to this page that takes the user to a page that displays a list of the names of the people who have signed the guestbook. If anyone can help me out on starting the code in javascript for this page I would greatly appreciate it!!!


thanks

lmarshall
 
I there, when you say javascript does this mean you want the server side coding to be in javascript?

if so the vbscript and javascript server side are very similar with a few small syntax differences.
example
concatitnation + instead of &
so in the connection string
"Driver={Microsoft Access Driver (*.mdb)};DBQ=" + Server.MapPath("/database.mdb");
to vbscript
"Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/database.mdb")

personaly find vbscript seeing as the default and what ASP was intended to be coded with easy to use here but as I said the syntax is very similar. don't forget the ; as javascript needs also.

steps you'll need to take starting from the button for what you are doing are going to be
the button being a submit and the form action doing the processing. at what point are you in this process would really help out in explaining also
to the processing script
connect to the DB
execute a INSERT
then execute a SELECT, populate a RecordSet to show the records
The process is really not a long one or difficult and the steps are in basic terms being just that

if you're intersted in a vbscript version in showing the steps

otherwise can you let us know exactely where you are and what parts of the process you need help with. Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top