email form creation

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

email form creation

Post by Bijan Hemati »

Hi Oliver,

Where can I get some information on how to creat an email form?
How to insert form fileds and so on?

Regards,

Bijan
sporto
Posts: 160
Joined: Mon 10. Nov 2003, 18:01
Location: USA, Chicago

Post by sporto »

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

Post by Bijan Hemati »

I have looked at this.
Oliver Georgi wrote:Test this here in the textarea - try to fill in all other fields

Code: Select all

IT|vorname|1|Vorname: |40,100|wert|300
IP|passwort|0|Passwort: |12,100||100
TA|info|0|Info: |20,3||300
SM|menu|0|Menü: |20,100|Test#Test2#Test3|300
SL|list|0|Liste: |3,0|1%Test#2%Test2#3%Test3#4%Test4|200
IC|mark|1|Markierung: |50,3|mark1%1%DU#mark2#mark3#Liste#Neu#Auswahl|0
IR|radio|1|Wählen: |50,0|mark1%1%DU#mark2#mark3|0
SC|country|0|Land: |10,100|FR|300
IN|plz|1|PLZ: |40,100||300
I did a cut and past in the "form fields:" area. Then tested the generated form, but I diden't get any email.

I like to know what the codes mean.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

oK,
I will try to create a small docu for this today.
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Thank you Oliver,

Is there more codes than what I saw on your post?
I want to make an email form similar to this.

http://www.mrbijan.com/mailform

Regards,
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

This layout is not possible with that form generator - because layout possibilities are limited to what you have seen - label left -> form fields right.

But it's all possible to create.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Oliver Georgi wrote:oK,
I will try to create a small docu for this today.
Oliver
That's great Oliver!
Will it be in the forum or the phpwcms site, under documents?

Also two questions on the codes:

* IN|plz|1|PLZ: |40,100||300
is plz in above code, the email field? (btw, when I type letters in that field they disappear as soon as I lift my fingers off the keyboard!)

* Is there a way to add text in between the rows of the FORM FIELDS?
Or insert blank lines to separate the fields in some rows?

Regards,

Bijan
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

I hope you had a great day today.
You are very kind to answer these questions so quickly.

I'm going to try them out and I'll give you a feed-back.

Thanks again Oliver, :wink:

Regards,
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Hi Bijan - my day started.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Pappnase

Post by Pappnase »

Hallo Oliver


:arrow: EIN DICKES FETTES DANKE!!!!! :lol: :idea:

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

Post by Bijan Hemati »

Hi Oliver,

I made a form and tested it.
I noticed two things:

First, I received an error message, on a new page, after clicking on send button.

Error while processing the mail form!

Probably you have not filled in every neccessary form field.
Please check your data on the basis of the susequent message.

Error Description
[500] Fill in field VORNAME.



But I put 0 in IS_NEEDED area, see codes below 2nd line.

IT|Vorname|1|Name: |40,100||300
IT|Vorname|0|Address: |40,100||300
IT|email|1|email address: |40,100||300

So I field-out all the fields, regardless of IS_NEEDED or NOT_NEEDED. and clicked on send button. Then a new page popped out with a message saying

Thank you!

Every needed field in form was filled in.
You will get a confirmation message if you have given a valid e-mail address.


But I had never received an email.

I know you are very busy with a lot more important updates. But I would like to thank you for the time you have spent on this issue so-far.

Regards,

Bijan
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Bijan,

check this here:
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"

And you must have a field "email" to receive an confirmation email and hidden "send_copy". If you do not have an email insert field - what should the system do? ;-)
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

OK, Finally I understand how it works.
Thank you Oliver...

I did receive an email after I filled the form and sent it. But there are couple of things I am not sure how to handle. Here are my codes:

IT|vorname|1|Name: |40,100||300
IT|Vorname|0|Address: |40,100||300
IT|email|1|email: |40,100||300
IH|language|0||10,100|EN|0
IH|send_copy|0||10,100|1|0

* First, The email is not in English.
* Second, The email shows the hidden fields, see below.

******** THE EMAIL **************
Formular versendet am 21.11.2003 um 00:47:24 Uhr
Das Ausgangsformular finden Sie hier:
http://www.mywebsite.com/index.php?id=3,0,0,1,0,0
===============================================
Formularempfänger: myemail@home.com
===============================================
online webform email message
--------------------------------------------------------------------
vorname.: BJ
Vorname.: my address
email...: senderemail@home.com
language: EN
submit..: Send
type....: 0

===============================================
phpwcms formmailer | Copyright (C) 2003

Regards,
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I will check.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply