਍ഀ ਍ഀ View ASP Source code਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ
ASP Source Code਍ഀ

ASP File: ਍ഀ jscript/ado/studentreg/register.asp

਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ ਍ഀ
      ਍ഀ  ASP Script
      ਍ഀ  Comments or Client-side ਍ഀ Script
        HTML and Text ਍ഀ
਍ഀ
਍ഀ <%@ LANGUAGE = ਍ഀ "JScript" %>

<html>

<head>
<meta ਍ഀ NAME="GENERATOR" Content="Microsoft FrontPage ਍ഀ 3.0">
<title></title>
</head>

<body ਍ഀ BGCOLOR="#eadfdf">
<font face="Verdana, arial, helvetica"><%
   var lastName;
   var ਍ഀ firstName;
   var email;
   var ਍ഀ company;
   var coursee;
   var ਍ഀ courseexpectations;
   var courselocation ;
   var ਍ഀ coursetitle;
   var coursestartdate;
   var a = ਍ഀ Server.CreateObject("ADODB.CONNECTION");
   a.Open( ਍ഀ "DSN=studentdatabase;UID=;PWD=;");

   lastname = ਍ഀ Request.form("LastName");
  firstname = ਍ഀ Request.form("FirstName");
  email = Request.form("Email");
  ਍ഀ company =Request.form("Company");

  courseexpectations = ਍ഀ Request.form("TEXTAREA1");
  courselocation = ਍ഀ Request.form("CourseLocation");
  courseTitle ਍ഀ =Request.form("CourseTitle");
  coursestartdate = ਍ഀ Request.form("courstStartDate");
  var b = ਍ഀ Server.CreateObject("ADODB.RECORDSET");
 

  ਍ഀ b.CursorType=2;
  b.LockType = 2;

  b.Open ("select * from ਍ഀ Students",a);
 


  var c = b.Fields;
  ਍ഀ b.AddNew();
  c.Item(1).Value = lastname;
  c.Item(2).Value = ਍ഀ firstname;
  c.Item(3).Value = email;
  c.Item(4).Value = ਍ഀ company;
  c.Item(5).Value = courseTitle;
  c.Item(6).Value = ਍ഀ courselocation;
  c.Item(7).Value = coursestartdate;
  ਍ഀ c.Item(8).Value = courseexpectations;
  b.Update();
  ਍ഀ b.Close();
  a.Close();
  ਍ഀ Response.Write("<html><head><title>Confirmation ਍ഀ Page</title></head>");
  ਍ഀ Response.Write("    ");
  Response.Write("<font ਍ഀ face=1,2,3 size=4>The Following Information Was Entered ਍ഀ Successfully</font>");
  Response.Write("<p>");
  ਍ഀ Response.Write("<li><B>Name:</B> " + firstname + ", " + ਍ഀ lastname);
  Response.Write("<li><B>E-mail:</B> " + ਍ഀ email);
  Response.Write("<li><B>Company:</B> " + ਍ഀ company );
  Response.Write("<li><B>Course ਍ഀ Expectations:</B> " + courseexpectations);
  ਍ഀ Response.Write("<li><B>Course Title:</B> " + ਍ഀ courseTitle);
  Response.Write("<li><B>Course ਍ഀ Location:</B> " + courselocation);
  ਍ഀ Response.Write("<li><B>Course Start Date:</B> " + ਍ഀ coursestartdate);
%>

<p>        ਍ഀ <a href="studentindex.html"><font size="3" ਍ഀ color="#0000ff">-----Return Main Web-----</font> ਍ഀ </p>
</a></font>
</body>
</html>
਍ഀ
਍ഀ
਍ഀ

 

਍ഀ