Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit Page

Status
Not open for further replies.

cissilya

IS-IT--Management
Feb 15, 2005
42
US
I have a ASP page that feeds information into a Access Database, and I was wondering if there was a way to when the user hits submitt, have it reply with the full printout of what they have put in to the page.
I am new to ASP so i am not sure on how to do this

Thank you
 
YES. When the user hits submit button, take them to a page where you grab and display all the request.form values and open up a print message box(using javascript).

-DNG
 
Do you mean to do this:
1) as a warning of what is ABOUT to be submitted or
2) as a confirmation of what WAS JUST NOW submitted

??
 
i currently have this
<%
DIM objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath ("/goal2.mdb") & ";"
objConn.Open
%>


<%
DIM objRS
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open "Goal2", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable

objRS.AddNew
objRS("Division")=Request.Form("Division")
objRS("First_Name")=Request.Form("First_Name")
objRS("Last_Name")=Request.Form("Last_Name")
objRS("Supervisor")=Request.Form("Supervisor")
objRS("Client")=Request.Form("Client")
objRS("client_Type")=Request.Form("Client_Type")
objRS("eicl")=Request.Form("eicl")
objRS.update

objRS.Close
Set objRS=Nothing
objConn.Close
Set objConn=Nothing
%>

<%
Response.Write("<b>Thank you for submitting your Building Intense Customer Loyalty entry!</b>")
%>
</br>
<tr>
To get back to the intranet click <a href=" target="">Suffolk Intranet</a></td>
</tr>

and i would like the text to write on the same page as it says "Thank you for submitting your entry" if at all possible
 
try something like

Code:
if request("submit")<>"" then
response.write Request.Form("Division") &"<br>" &_
Request.Form("First_Name") &"<br>" &_
Request.Form("Last_Name") &"<br>" &_
Request.Form("Supervisor") &"<br>" &_
Request.Form("Client") &"<br>" &_
Request.Form("Client_Type") &"<br>" &_
Request.Form("eicl") 
end if
 
dumb question but where in the scrip do i put in the "if request"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top