Click to See Complete Forum and Search --> : A small question about email sending


weee
10-14-2004, 03:44 PM
I got a contact form (1 page) that sends the contact info to me and show's a "Thank You" message to the user.

the URL of the page is like that:
http://mydomian.com/contact

I want that after the info been sent so the URL will stay the same and won't be:
http://mydomian.com/contact/default.asp

How can I do it but still using one ASP page?

Thanks!

russell
10-14-2004, 04:39 PM
Response.Redirect "http://mydomian.com/contact/"

weee
10-14-2004, 04:41 PM
Response.Redirect. I need to show the user the message that will confirm his request.

russell
10-14-2004, 04:48 PM
After the code that sends the messages completes:

Response.Redirect "http://mydomian.com/contact/?sent=true"

Then on the default page:

If Lcase(Request.QueryString("sent")) = "true" Then
Response.Write "Thank You. Your message has been sent!"
End If