Hello
I have a Web site with a simple form on it. This form uses the following VBScript(ASP)CDONTS code:
<%
if (cStr(Request("Submit"
) <> ""
Then
dim MailObj
set MailObj = Server.CreateObject("CDONTS.NewMail"
MailObj.From = Request.Form("name"
MailObj.To = "info@grafik1.net"
MailObj.Subject = "Web site quote"
MailObj.Body = "Email was sent by: " & Request.Form("name"
& vbcrlf & vbcrlf&_
"his/her email address is:" & vbcrlf&_
Request.Form("email"
MailObj.Send()
set MailObj = nothing
Response.Redirect("welcome1.asp"
End If
%>
When the 'submit' button is clicked, the idea is that welcome1.asp (please see the reference to it in the code above) appears as a centred pop-up window to inform the visitor that his e.mail message has been received.
The problem I am having is that while the above code works, the welcome1.asp page appears as a full Web page after the 'submit' button is clicked, and not as a pop-up.
At the moment I have something like:
onClick="document.welcome.submit();
where "welcome" is the name of the form and, as I say, this redirects the visitor to welcome1.asp when the user clicks on the 'submit' button. But how to make welcome1.asp a centred pop-up?
Many thanks
LaPluma
I have a Web site with a simple form on it. This form uses the following VBScript(ASP)CDONTS code:
<%
if (cStr(Request("Submit"
dim MailObj
set MailObj = Server.CreateObject("CDONTS.NewMail"
MailObj.From = Request.Form("name"
MailObj.To = "info@grafik1.net"
MailObj.Subject = "Web site quote"
MailObj.Body = "Email was sent by: " & Request.Form("name"
"his/her email address is:" & vbcrlf&_
Request.Form("email"
MailObj.Send()
set MailObj = nothing
Response.Redirect("welcome1.asp"
End If
%>
When the 'submit' button is clicked, the idea is that welcome1.asp (please see the reference to it in the code above) appears as a centred pop-up window to inform the visitor that his e.mail message has been received.
The problem I am having is that while the above code works, the welcome1.asp page appears as a full Web page after the 'submit' button is clicked, and not as a pop-up.
At the moment I have something like:
onClick="document.welcome.submit();
where "welcome" is the name of the form and, as I say, this redirects the visitor to welcome1.asp when the user clicks on the 'submit' button. But how to make welcome1.asp a centred pop-up?
Many thanks
LaPluma