kirkouimet / jformer

jFormer is a form framework written on top of jQuery that allows you to quickly generate beautiful, standards compliant forms.
http://www.jformer.com/
155 stars 46 forks source link

Form 'action' fix for non-canonical document roots #14

Closed Hamled closed 11 years ago

Hamled commented 11 years ago

The 'action' attribute on jFormer forms is correctly determined when the website's document root is a non-canonical path, e.g. a symlink.

NOTE: This will not fix path problems that people might encounter if the form-processing PHP file itself uses a non-canonical path that is not a sub-path of the document root. In that case it would probably be better to pass $_SERVER['PHP_SELF'] as the 'action' option when constructing the JFormer object.