Problem with e-mail form

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
jhand
Posts: 2
Joined: Sat 27. Mar 2004, 01:13
Location: Duluth, GA

Problem with e-mail form

Post by jhand »

Here is the form code:

IT|name|1|Name: |40,100||300
IT|email|1|Email: |40,100||300
IT|phone|0|Phone #: |20,20||300
SL|type|1|Which Category?(Pick One):  |3,0|1%Site Question/Comment#2%I would like to speak with the treasurer about donating#3%I would like to get more information about being a volunteer|450
TA|comment_question|0|Question/Comment: |20,3||450
IR|relationship|1|I am: |200,3|Already a Volunteer%#Interested in becoming a Volunteer%#Just a visitor%|0

Here is the result screen:

form data:

field: value:
name Jason Hand
email jhand413@bellsouth.net
phone
type 0
comment_question Selected 2
relationship 1

The problem is, no matter what "type" I select the result is "0" and no matter what "relationship" the result is "1".

What am I doing wrong?

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

Post by Oliver Georgi »

type is suspect - I will check later - has nothing to say ;-)

Radio has to formatted like this

IR|radio|1|Select: |50,0|mark1%1%DU#mark2%0%XU#mark3%0%KD|0

Use it and try and you will understand.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

I too get type.....: 0

IT|name|1|Full Name: |40,100||300
IT|mail|1|Email Address: |40,100||300
IT|member|1|Membership Number: |40,100|non-member|300
IR|attending|1|Number Attending: |20,0|1%1%DU#2#3#4|0
TA|comments|0|Comments: |20,3||300
IH|redirect|0||10,100|/index.php?success|0
IH|redirect_error|0||10,100|/index.php?error_q4p|0

Also the email address is not getting a copy.
I included
IH|send_copy|0||10,100|1|0
but redirects to my error page on send.

If no radio buttons are selected I get DU instead on 1 so I now replaced DU with 1. Is that correct?
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hi jhand and 1996 328ti,

i think, that's your solution:

Code: Select all

IR|relationship|1|I am: |200,3|Already a Volunteer%1%VOLUNTEER#Interested in becoming a Volunteer%0%INTERESTED#Just a visitor%0%VISITOR|0
Where the integer (0 or 1) is a switch, to enable (1) this point or not (0).

The text behind the 2. % is the text, you will get in your mail
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

Thanks but I still don't understand why I get
type.....: 0
in my email. I don't have any field named type.

Also the person in the email field does not get a copy. :(
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

And another problem I have found.
I need the email address of the person sending the form to be in the From: field.

I wonder if I am having problems because I remained any reference of formmail to form2mail.
Post Reply