Help with the redirect code! Please!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcarlsonco
    New Member
    • Aug 2007
    • 2

    Help with the redirect code! Please!

    I am currently revamping a website for a small business and there is one page giving me issues. I am doing it as a favor for a friend and am not by any means the most tech savvy on coding. There is a form page that consists of an email text field and comment section that goes right to the business. The problem is not the form that I have remade, it's the Thank you page that it directs to. The owner transferred all the pages and deleted the thank you page. It's on the web but I cannot seem to find it in the folders. I need to redirect the email page to the NEW thank you page. What code am I looking for to redirect?

    Please help, thanks.
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    If there is a email sending form and if it is working, there should be a ServerSide Scripting language like Php,ASP,JSP/servlet. So the redirection to thank you page should trigger from that server side part.So what is in your web site? I mean language.

    Comment

    • bcarlsonco
      New Member
      • Aug 2007
      • 2

      #3
      Originally posted by ajaxrand
      If there is a email sending form and if it is working, there should be a ServerSide Scripting language like Php,ASP,JSP/servlet. So the redirection to thank you page should trigger from that server side part.So what is in your web site? I mean language.
      It's Arvadaflats.com , where it says form it reads:

      <form action="http://svcs.dexclicks. com/svcs/formproc.jsp" method="POST">

      BC

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Originally posted by bcarlsonco
        It's Arvadaflats.com , where it says form it reads:

        <form action="http://svcs.dexclicks. com/svcs/formproc.jsp" method="POST">

        BC
        So Its JSP. what you have to is, Put this line with the path for the thank you page. with some conditions on it.
        [CODE=java]
        IF _MAIL_SENDING_O K
        response.sendRe direct("path_to _thanks_page.ht ml");
        ELSE
        response.sendRe direct("sending _failed.html");[/CODE]

        Comment

        Working...