[HTML form] redirect after submit

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
vvo
Posts: 50
Joined: Sun 9. Nov 2003, 14:07
Location: Netherlands

[HTML form] redirect after submit

Post by vvo »

Hi all,
I have defined a content part HTML in my site.
In this HTML content part I have put a form which submits the form to a Java servlet.
However after a submit the Java servlet returns with a blank screen.
I thought that <input type="hidden" name="redirect" value="http://www.wintergidsen.nl/phpwcms/inde ... ,7,0,0,1,0" id="redirect" /> would redirect to the given page, however this doesn't work.

Is there any other way to redirect to a page after submitting a form?

Ciao,


Johan.
Ghost25
Posts: 21
Joined: Fri 17. Sep 2004, 08:57
Location: Dättlikon bei Winterthur

Post by Ghost25 »

Hello vvo

You have the follow Code insert to HTML CONTENT PART in your ARTICLE

Code: Select all

<input type="hidden" name="redirect" value="http://www.wintergidsen.nl/phpwcms/index.php?id=1,7,0,0,1,0" id="redirect" />
This Code has a FAILURE. The correct Code i think is this one

Code: Select all

<input type="hidden" name="redirect" value="http://www.wintergidsen.nl/phpwcms/index.php?id=1,7,0,0,1,0" id="redirect">
Ithink the last SLASH ( / ) is to much

Greets by Ghost25
Post Reply