CONTACT DETAILS.
Reference: Mr. Karma Sherap Tharchin, Principal

Address:

Tibetan Children's Village School Suja P.O. Matroo- 175032 Distt Mandi, HP
Telephone: Principal Office: 01908-252799
School Office/Fax: 01908-252621
Account Office: 01908-231271
E-mail tcvsuja@yahoo.co.in, tharchinkarma@yahoo.com

COMMENT FORM

Note *: Fields prefixed with * are mandatory fields to fillup.
 * Email:
 Student of TCV Suja:
 Address:
 Country:
Current Job:
* Your feed back:
    

<% 'The HIDDEN button above sets the Message variable to True. 'We know now that form data has been entered. 'Get the data from the form. We will be inserting it into the database. 'Access doesn't like some characters, such as single-quotes, so encode the ' data using the HTMLEncode method of the ASP Server object. dim strTB1, strTB2, strTB3, strTB4, strMB1, strTB5, strCommand strTB1 = Server.HTMLEncode(Request.QueryString("txtEmail")) strTB2 = Server.HTMLEncode(Request.QueryString("std")) strTB3 = Server.HTMLEncode(Request.QueryString("txtPresentAddress1")) strTB4 = Server.HTMLEncode(Request.QueryString("txtCurr_Job")) strTB5 = Server.HTMLEncode(Request.QueryString("ddListCountry")) strMB1 = Server.HTMLEncode(Request.QueryString("feedback")) 'This is a connection string. ADO uses it to connect to a database through the Access driver. 'It needs the provider name of the Access driver and the name of the Access database. 'Connection strings are slightly different, depending on the provider being used, ' but they all use semicolons to separate variables. 'If this line causes and error, search in your registry for ' Microsoft.JET to see if 4.0 is your version. strProvider = "Provider=Microsoft.JET.OLEDB.4.0;Data Source=C:\inetpub\vhosts\tcvsuja.org\httpdocs\app_data\feedback.mdb;" 'strProvider = "Provider=Microsoft.JET.OLEDB.4.0;Data Source=D:\Inetpub\wwwroot\student.mdb;" 'This creates an instance of an ADO Connection object. 'There are 4 other ADO objects available to you, each with different methods and 'properties that allow you to do almost anything with database data. Set objConn = server.createobject("ADODB.Connection") 'The Open method of the Connection object uses the connection string to ' create a connection to the database. objConn.Open strProvider 'Define the query. 'There are many types of queries, allowing you to add, remove, or get data. 'This query will add your data into the database, using the INSERT INTO key words. 'Here, GuestBook is the name of the table. 'You need single-quotes around strings here. strCommand = "INSERT INTO persons VALUES ('" & strTB1 & "','" & strTB2 & "', '" & strTB3 & "','" & strTB4 & "', '" & strTB5 & "', '" & strMB1& "')" 'Execute the query to add the data to the database. objConn.Execute strcommand %> <% 'Close the Connection. objConn.Close %>