WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: sharmpro on May 30, 2008, 10:50:53 AM

Title: Form submission to return to same section
Post by: sharmpro on May 30, 2008, 10:50:53 AM
Hi,
I've a long page with some forms users can fill.
When one of the form is submitted the page get loaded again and will show the beginning (top) of the page while the messages (either errors and success) regarding the form filled, are 'hidden' and you need to scroll to see is what happened,

Wouldn't be easier to generate the link with the reference to the section? e.g.
<form name="form" action="<?php echo htmlspecialchars(strip_tags($_SERVER['PHP_SELF']))."#wb_section_$section_id"; ?>" method="post">
...
instead of
...
<form name="form" action="<?php echo htmlspecialchars(strip_tags($_SERVER['PHP_SELF'])); ?>" method="post">
...
as it is now?


Thank you,

Stefano
Title: Re: Form submission to return to same section
Post by: doc on May 30, 2008, 12:27:37 PM
Hello,

would be an option for a 2.7.x release. Please add this as feature request via the TRAC on the WB 2 project site: http://projects.WebsiteBaker.org.

Regards Christian