Link to home
Start Free TrialLog in
Avatar of Stiebel Eltron
Stiebel EltronFlag for Thailand

asked on

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...
Avatar of Eyal
Eyal
Flag of Israel image

Response.write("<h1 align=""center"">Thank You "  & Request.Form("fname")) &  " " & Request.Form("lname")) & "</h1>")
Avatar of Stiebel Eltron

ASKER

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>")
---------------------------------------------------------------------------------------------------------^
Avatar of Pratima
try

Response.write("<h1 align=center>Thank You "  & Request.Form("fname")) &  " " & Request.Form("lname")) & "</h1>")
ASKER CERTIFIED SOLUTION
Avatar of Pratima
Pratima
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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>")
Response.write("<h1 align='center'>Thank You "  & Request.Form("FName")) &  " " & Request.Form("LName") & "</h1>")
Response.write("<h1 align='center'>Thank You "  & Request.Form("FName") &  " " & Request.Form("LName") & "</h1>")