Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-02 19:22:49

jriemerm
New Member
Registered: 2006-04-17
Posts: 9

How can TextPattern create the other kind of forms?

I’m trying to figure out how to create custom forms within textpattern, and not the special meaning of forms within the textpattern system.

In other words, a form with multiple fields of multiple kinds—text, text area, radio buttons, pulldowns, etc… Ideally one that would have an option for saving submissions as data and/or sending as an email to designated email/s.

Is there a plugin for this, or a built-in feature I can’t find? I’m having a hard time searching for it because textpattern has its own special meaning for the term “form”.

thanks,

james

Offline

#2 2006-05-02 19:38:31

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: How can TextPattern create the other kind of forms?

If I understand what you’re asking; you can create HTML forms either directly in a page structure or in a TXP form and then include the form on the page.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#3 2006-05-02 20:24:28

jriemerm
New Member
Registered: 2006-04-17
Posts: 9

Re: How can TextPattern create the other kind of forms?

Thanks, I can certainly create HTML forms, but simply dropping in the form code wouldn’t work unless there was a form-handling script behind the scenes that the form code would call, right? Something to accept the values and insert them in a database and/or send them as an e-mail. Are there any tools or plugins for that?

I’ve worked with a number of different form handling PHP scripts, as well as CMSs that have a script for handling forms built in.

Offline

#4 2006-05-02 22:16:04

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: How can TextPattern create the other kind of forms?

You can put PHP code for handling form input directly in a page template, or in a plugin.

You’ll find some helpful Textpattern functions in the lib directory, like ps().


Alex

Offline

#5 2006-05-02 22:23:53

jriemerm
New Member
Registered: 2006-04-17
Posts: 9

Re: How can TextPattern create the other kind of forms?

Thanks, Alex. Unfortunately, I’m not even a novice programmer. If someone had developed a plugin for the purpose I’d use it, but creating a form handler is well beyond my skills.

Offline

#6 2006-05-02 22:32:14

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: How can TextPattern create the other kind of forms?

A form handler will almost always need some kind of code, since someone has to tell it what to do.

If you’re just looking for a form handler that sends an email, see here.


Alex

Offline

#7 2006-05-02 22:35:29

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How can TextPattern create the other kind of forms?

zem_contact_reborn has some more features than zem’s original plugin, maybe it could be a starting point for you?

Offline

#8 2006-05-02 23:11:12

jriemerm
New Member
Registered: 2006-04-17
Posts: 9

Re: How can TextPattern create the other kind of forms?

Thanks, I’ll look into that. I’m also wondering if textpattern might work well for integrating a call to <a href=“http://sourceforge.net/project/showfiles.php?group_id=39625&package_id=48885”>tfmail</a>, a real powerful perl form handling script I used to use and love. It worked great for me until I started using a CMS, which I couldn’t integrate it into. Fortunately that CMS also had a form-builder plugin of its own. It sounds like textpattern might be more flexible for integrating calls to other scripts.

Last edited by jriemerm (2006-05-02 23:21:06)

Offline

Board footer

Powered by FluxBB