ok look on this :
The first thing you need to do is create a formpage.asp page with the code below:
<form name="YourFormName" method="Post" action="resultspage.asp"> <table> <tr><td>Email: </td> <td><input type="text" name="Email" size="50"></td></tr> <tr><td>Name: </td> <td><input type="text" name="Name" size="50"></td></tr> <tr><td>Comments: </td> <td><textarea name="Comments"></textarea></td> </table>
<input type="submit" name="Submit" value="Submit Form"> </FORM> |
Next, we create a resultspage.asp page and enter the code as seen below:
<!--#INCLUDE VIRTUAL="/includes/connection.asp" -->
<% DIM objRS Set objRS = Server.CreateObject("ADODB.Recordset") objRS.Open "YOUR table name HERE", objConn, , adLockOptimistic, adCmdTable
objRS.AddNew objRS("Email") = Request.Form("Email") objRS("Name") = Request.Form("Name") objRS("Comments") = Request.Form("Comments") objRS.Update
objRS.Close Set objRS = Nothing objConn.Close Set objConn = Nothing %>
<p> <% DIM strName strName = Request.Form("Name") Response.Write strName %>,</p>
<p>Thank you for emailing me.</> |
its From aspwebpro .
i m Stuck here : <!--#INCLUDE VIRTUAL="/includes/connection.asp" -->
what the hell he want from me ? Where is that page ? its not Exsist .
i need to Make it right ? if so how ?
oh and i need to make Db or somthing ?
can somone help me 
Edit :
ok i understand i need to open Conection to the Db ... How to do it ?
and How i make the Db ? (i have Access)
Edited by zadax