hally
02-22-2006, 06:54 PM
This is my code..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% @Language="JavaScript" %>
<%
var dsn="dsn=VS";
var Conn=
Server.CreateObject("ADODB.Connection");
Conn.Open(dsn);
var no_vot = Request.Form("novot");
var thn = Request.Form("tahun");
var peruntukanthnn = Request.Form("peruntukan");
var tmbh = Request.Form = ("ptambahan");
var total1 = 0;
total1 = peruntukanthnn + tmbh
var sql = "Insert INTO KE (NOVOT, TAHUN, PERUNTUKAN, ANGGARANT, BUDGET ) VALUES ('"+no_vot+"','"+thn+"','"+peruntukanthnn+"',
'"+tmbh+"','"+total1+"');"
Conn.Execute(sql);
Conn.Close();
Conn=null;
%>
<HTML>
<HEAD>
<TITLE>JUMLAH PERUNTUKAN TAHUNAN</TITLE>
</HEAD>
<link rel="stylesheet" type="text/css" href="images181/blue.css">
<BODY BGCOLOR="#000000">
<CENTER>
<IMG SRC="banner.jpg">
</cENTER>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<FONT face="Verdana,Tahoma" COLOR="white">
<CENTER>
<P>Peruntukan bagi Tahun <%=Request.Form("tahun") %> ialah RM
document.write("" + total1);
</P>
</CENTER>
</FONT>
<FONT face="Verdana,Tahoma" SIZE="3">
<ALIGN="RIGHT">
<BR>
<BR>
<P>
<A HREF="addnew1.asp">seterusnya>>>></A>
</P>
</ALIGN>
</FONT>
<BR>
<BR>
<BR>
<FONT FACE="Verdana, Tahoma" SIZE="-2" COLOR="white">
<br>
<CENTER>Copyright Reserved 2006</a>
</CENTER>
</FONT>
</BODY>
</HTML>
i dont know why i had face this problem...
Error Type:
Microsoft JScript runtime (0x800A01B6)
Object doesn't support this property or method
/SYSTEM VOT/viewperuntukan1.asp, line 16
i just want to store the total sum of "peruntukan" + "ptambahan" ...
"ptambahan" is not a static value.. it can be change by the user... "peruntukan" is a static value...
please help me...it very urgent
Hally form Malaysia...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% @Language="JavaScript" %>
<%
var dsn="dsn=VS";
var Conn=
Server.CreateObject("ADODB.Connection");
Conn.Open(dsn);
var no_vot = Request.Form("novot");
var thn = Request.Form("tahun");
var peruntukanthnn = Request.Form("peruntukan");
var tmbh = Request.Form = ("ptambahan");
var total1 = 0;
total1 = peruntukanthnn + tmbh
var sql = "Insert INTO KE (NOVOT, TAHUN, PERUNTUKAN, ANGGARANT, BUDGET ) VALUES ('"+no_vot+"','"+thn+"','"+peruntukanthnn+"',
'"+tmbh+"','"+total1+"');"
Conn.Execute(sql);
Conn.Close();
Conn=null;
%>
<HTML>
<HEAD>
<TITLE>JUMLAH PERUNTUKAN TAHUNAN</TITLE>
</HEAD>
<link rel="stylesheet" type="text/css" href="images181/blue.css">
<BODY BGCOLOR="#000000">
<CENTER>
<IMG SRC="banner.jpg">
</cENTER>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<FONT face="Verdana,Tahoma" COLOR="white">
<CENTER>
<P>Peruntukan bagi Tahun <%=Request.Form("tahun") %> ialah RM
document.write("" + total1);
</P>
</CENTER>
</FONT>
<FONT face="Verdana,Tahoma" SIZE="3">
<ALIGN="RIGHT">
<BR>
<BR>
<P>
<A HREF="addnew1.asp">seterusnya>>>></A>
</P>
</ALIGN>
</FONT>
<BR>
<BR>
<BR>
<FONT FACE="Verdana, Tahoma" SIZE="-2" COLOR="white">
<br>
<CENTER>Copyright Reserved 2006</a>
</CENTER>
</FONT>
</BODY>
</HTML>
i dont know why i had face this problem...
Error Type:
Microsoft JScript runtime (0x800A01B6)
Object doesn't support this property or method
/SYSTEM VOT/viewperuntukan1.asp, line 16
i just want to store the total sum of "peruntukan" + "ptambahan" ...
"ptambahan" is not a static value.. it can be change by the user... "peruntukan" is a static value...
please help me...it very urgent
Hally form Malaysia...