Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:34:24 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Form submission to return to same section  (Read 898 times)
sharmpro

Offline Offline

Posts: 64



WWW
« on: May 30, 2008, 09: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
Logged

doc
Guest
« Reply #1 on: May 30, 2008, 11:27:37 AM »

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
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!