Author Topic: Form submission to return to same section  (Read 1952 times)

Offline sharmpro

  • Posts: 64
  • Gender: Male
    • SharmPRO
Form submission to return to same section
« 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

doc

  • Guest
Re: Form submission to return to same section
« Reply #1 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