• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

How to revise the Thank You page using ASP?

Dear EE Experts,

We would like to ask for tech support on how to change this script:
Response.write("Thank You!")

That is from this script:
Set objExec = Conn.Execute(strSQL)
If Err.Number = 0 Then

Response.write("Thank You!")

Else
   
Response.write("Error Save ["&strSQL&"] ("&Err.Description&")")
End If
Conn.Close()
Set objExec = Nothing
Set Conn = Nothing
%>

We would like to change to:
<h1 align="center">Thank You <% Response.Write(Request.Form("fname")) + Response.Write(Request.Form("lname")) %> </h1>

Thank you & hope to hear soon...
0
Stiebel Eltron
Asked:
Stiebel Eltron
  • 3
  • 2
  • 2
1 Solution
 
EyalCommented:
Response.write("<h1 align=""center"">Thank You "  & Request.Form("fname")) &  " " & Request.Form("lname")) & "</h1>")
0
 
Stiebel EltronAuthor Commented:
Hi there Eyal! Nice to hear from you again!
I got this error result:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/iphoto/asia2/login/signup_result2.asp, line 23

Response.write("<h1 align=""center"">Thank You "  & Request.Form("FName")) &  " " & Request.Form("LName")) & "</h1>")
---------------------------------------------------------------------------------------------------------^
0
 
Pratima PharandeCommented:
try

Response.write("<h1 align=center>Thank You "  & Request.Form("fname")) &  " " & Request.Form("lname")) & "</h1>")
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Pratima PharandeCommented:
<% Set objExec = Conn.Execute(strSQL)
If Err.Number = 0 Then
 %>
<h1 align="center">Thank You
<% Response.Write(Request.Form("fname") & " " & Request.Form("lname")) %>
</h1>
<%
Else
   
Response.write("Error Save ["&strSQL&"] ("&Err.Description&")")
End If
Conn.Close()
Set objExec = Nothing
Set Conn = Nothing
%>
0
 
Stiebel EltronAuthor Commented:
Still the same:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/iphoto/asia2/login/signup_result2.asp, line 26

Response.write("<h1 align=center>Thank You "  & Request.Form("fname")) &  " " & Request.Form("lname")) & "</h1>")
0
 
EyalCommented:
Response.write("<h1 align='center'>Thank You "  & Request.Form("FName")) &  " " & Request.Form("LName") & "</h1>")
0
 
EyalCommented:
Response.write("<h1 align='center'>Thank You "  & Request.Form("FName") &  " " & Request.Form("LName") & "</h1>")
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now