In Dreamweaver CS3 Forms Submit button need redirect code back to page after form is submitted to CGI server

After pages user clicks submit button on form I want the page to redirect to same page or possibly to new page on the site. What happens now is form is submitted correctly to my Hosting provider and a e-mail is sent back, just like it's should work. Problem is I get a error page on the site. Please advise code I should use for redirect.  I am using Dreamweaver CS3 Mac. to build the site.
Thank you.
vaughnnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineNo oneCommented:
Hi vaughnn,

Whatever script is processing the form should have some way to set the redirect.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
darron_chapmanCommented:
What is the error you're getting?  If it's page not found, make a note of the page that it's looking for, and create that page either make it redirect using meta refresh, or have it say "thank you" or something like that.
0
CoolHaxordCommented:
Hi vaughnn

What you could do is a javascript redirect once the form is processed.  Lets say you have a script called process.php (or any other language).  Once its done emailing the form etc, send this output to the browser:

<script type="text/javascript">
<!--
window.location = "http://www.yoursite.com/your_page.html"
//-->
</script>

On php this can be done using the echo command as follows:

echo '<script type="text/javascript">';
echo '<!--';
echo 'window.location = "http://www.yoursite.com/your_page.html"';
echo '//-->';
echo '</script>';

You can replace the website with anything you want.  If you require the code for other scripting languages or any other info, let me know.

CoolHaxord
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.