Well it is nt4 with iis 4 <br><br>the code is given below<br><br><FONT FACE=monospace><%@ Language=VBScript %><br><%Response.Buffer = True%><br><!--#include file="Connection.asp" --> <br><%<br><br>If Request.Form("product_id"

= "" Then<br><br> Response.Write ("The contents of this page is not viewable"

<br><br>Else<br>%><br><HTML><br><HEAD><br><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"><br></HEAD><br><BODY><br><table cellpadding="2" cellspacing="0" border="0"><br> <tr><br> <td><font face='arial' size='-1'>Product Id</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("product_id"

%> </font></td><br> </tr><br> <tr><br> <td><font face='arial' size='-1'>Product Name</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("product_name"

%> </font></td><br> </tr><br> <tr><br> <td><font face='arial' size='-1'>Rate</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("rate"

%> </font></td><br> </tr><br> <tr><br> <td><font face='arial' size='-1'>Description</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("description"

%> </font></td><br> </tr><br> <tr><br> <td><font face='arial' size='-1'>Image Path</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("img_path"

%> </font></td><br> </tr><br> <tr><br> <td><font face='arial' size='-1'>Quantity</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("quantity"

%>ml </font></td><br> </tr><br> <tr><br> <td><font face='arial' size='-1'>Product Type</font></td><br> <td><font face='arial' size='-1'><%=Request.Form("product_type"

%> </font></td><br> </tr><br> </table><br> <!-- #include file="adovbs.inc" --><br><%<br> dim rs, sql, id, vari<br> 'Set rs = server.CreateObject ("ADODB.Recordset"

<br> id = Request.Form("product_id"

<br> vari = Cstr(id)<br> sql = "Insert into product_mst (product_id, product_name, rate, description, img_path, quantity, product_type)"<br> sql = sql + " values ('"& vari & "','" & Request.Form("product_name"

& "'," & Request.Form("rate"

& ",'" & Request.Form("description"

& "','" & Request.Form("img_path"

& "'," & Request.Form("quantity"

& "," & Request.Form("product_type"

& "

;" <br> 'sql = "select * from product_mst"<br> Response.Write sql<br> set rs = con.Execute(sql)<br> 'Response.Write (<br> ' rs.Open sql, con,1, 3<br> ' rs.AddNew <br>' rs("product_id"

= vari<br>' rs("product_name"

= Request.Form("product_name"

<br>' rs("rate"

= Request.Form("rate"

<br>' rs("description"

= Request.Form("description"

<br>' rs("img_path"

= Request.Form("img_path"

<br>' rs("quantity"

= Request.Form("quantity"

<br>' rs("product_type"

= Request.Form("product_type"

<br> ' rs.Update<br> Response.Write ("<p><font face='arial' size='-1'>The new product with the above details was <br>added to the Database</font></p>"

<br>'rs.close<br>'Set rs = Nothing<br>%><br><ul><br> <li><a href="dataentry.asp?type=2&cat=<%=Request.Form("cata"

%>">Click here to add another product to the same catagory</a><br> <li><a href="dataentry.asp?type=1">Click here to add a product to a new catagory</a><br></ul><br></BODY><br></HTML><br><%<br> <br>End If<br><br>%><br><br><br><br>i have used both rs.addnew method and the insert statement in sql both ways it does not help! <p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!