Form submission to return to same section

doc

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

sharmpro

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
[b]

SharmPRO [url="http://www.sharmpro.com"]http://www.sharmpro.com[/url]


[url="http://www.jcwebden.com"]http://www.jcwebden.com[/url]