WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R24 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Form submission to return to same section
  • Print
Pages: [1]   Go Down

Author Topic: Form submission to return to same section  (Read 6514 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
Logged


SharmPRO http://www.sharmpro.com


http://www.jcwebden.com

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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Form submission to return to same section
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2