forms

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
pbeckermann
Posts: 4
Joined: Wed 17. Dec 2003, 13:23
Location: Burlington
Contact:

forms

Post by pbeckermann »

could you breifly explain how to use forms in PHP WCMS
what do these fields mean
IT|address|0|Address: |40,100||300

How do you make field mandatory or not
How can i make a drop down or checkbox or radio

Thanks
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Oliver Georgi wrote:IN mean input text field - only numbers allowed. plz is zip code in German.

Here is a test form once again - and I will explain:

Code: Select all

IT|vorname|1|Vorname: |40,100|wert|300

Code: Select all

IT|email|1|Email: |40,100||300

Code: Select all

IP|passwort|0|Passwort: |12,100||100

Code: Select all

TA|info|0|Info: |20,3||300

Code: Select all

SM|menu|0|Menü: |20,100|Test#Test2#Test3|300

Code: Select all

SL|list|0|Liste: |3,0|1%Test#2%Test2#3%Test3#4%Test4|200

Code: Select all

IC|mark|1|Markierung: |50,3|mark1%1%DU#mark2#mark3#Liste#Neu#Auswahl|0

Code: Select all

IR|radio|1|Wählen: |50,0|mark1%1%DU#mark2#mark3|0

Code: Select all

SC|country|0|Land: |10,100|FR|300

Code: Select all

IN|plz|1|PLZ: |40,100||300

Code: Select all

IH|language|0||10,100|DE|0

Code: Select all

IH|redirect|0||10,100|http://www.apple.com|0

Code: Select all

IH|redirect_error|0||10,100|http://www.microsoft.com|0

Code: Select all

IH|send_copy|0||10,100|1|0
IT = Text Field
IP = Password Field
TA = Textarea Field
SM = Select Menu
SL = Select List
IC = Checkbox
IR = Radio Button
SC = Country Select Menu
IH = Hidden Field

This is the base formatting for every form element:

Code: Select all

CODE|NAME|IS_NEEDED|LABEL|SIZE,MAXLENGTH|VALUE|CSS_WIDTH
Special Size,Maxlength for menus, list and checkbox, radiobutton:
menu: does not have any sense
list: SIZE = how many rows of the list should be shown
checkbox, radiobutton: SIZE = width of label in px
checkbox: MAXSIZE = how many columns

Test the values i.e. for menus, lists, checkbox and radiobutton.

There are several special names for fields on that base the formmailer can do special functions (here are the names - must be written as listed here):

email = email address on that base something can be done

Special hidden fields:
language = formmailer language - at the moment DE or EN (default)
redirect = if success redirect to this page
redirect_error = if error redirect to this page
send_copy = if value 1 then send email confirmation to "email"


Oliver
You can also do a search in the forum for more info on forms.

Regards,
Post Reply