Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

Am 21.09.2012 20:48 schrieb Florian Effenberger:

I know we have one for the membership application, but all tutorials I can find
on the web are about coding one on your own.

What I need is an input field for the donation amount, a "donate button", and
the form action should invoke a custom PHP script I'm currently developing.

If it's already possible to limit the input value of the form field (only whole
numbers between 1 and 1000, to be on the safe side for the moment), filtering
out any invalid characters, that would be perfect, but can also be done at the
PHP script level.

I didn't try what rules you can define but creation of a form is about
1) Create a new page (select "User defined form" from dropdown near "Go")
2) Add fields (under "Form" tab; "Main" tab only contains "$UserDefinedForm")
3) Add rules etc

For the Anwender/Mitmachen form in de.lo I just experimented a bit until it
worked as desired.

Dunno how to realize passing results to a php script, all the builtin form can
do seems limited to storing values on the server and emailing them to a given
address. So maybe you'll have to code a custom form anyways.

Best
Nino

-- 
Unsubscribe instructions: E-mail to website+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.