471,610 Members | 1,350 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

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.
Aug 31 '07 #1
3 1614
ak1dnar
1,584 Expert 1GB
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.
Aug 31 '07 #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.
It's Arvadaflats.com, where it says form it reads:

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

BC
Aug 31 '07 #3
ak1dnar
1,584 Expert 1GB
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.
Expand|Select|Wrap|Line Numbers
  1. IF _MAIL_SENDING_OK
  2. response.sendRedirect("path_to_thanks_page.html");
  3. ELSE
  4. response.sendRedirect("sending_failed.html");
Aug 31 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Bobby | last post: by
1 post views Thread by john | last post: by
10 posts views Thread by isaac2004 | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.