开发者

Jformer questions

开发者 https://www.devze.com 2023-02-20 18:48 出处:网络
I am looking for some help with jFormer. The way my site works a form cannot submit to the same place it was built,

I am looking for some help with jFormer.

The way my site works a form cannot submit to the same place it was built,

yet looking at the demo code it seems tha开发者_如何学编程t this is how it has to work?

Is this true?


No guarantees as I am unable to test it myself, but you could try:

$contactForm = new JFormer('contactForm', array('action' => 'my_page.php'));

Items added into the array passed to the JFormer constructor are supposed to be added as attributes to the form tag from what I can see in the code. See https://github.com/kirkouimet/jformer/blob/master/source/development/php/JFormer.php

Update

Actually it looks like I was looking at the incorrect class as they have two classes in the JForm.php file when you would expect there to only be the actual JFormer class in there. They have a JFormElement class at the top of the file! Still I cannot readily see if it might still work or not.

The documentation is lack lustre and the inline comments are worse.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号