This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
[closed] Received email
Started 17 years ago by adi | 8 posts |
-
First it says MachForm when email is received how do i change that?
Second: How do i clean up the email i have a huge form when i open it its just confusing?
Third: How can i have two fields beside each other? My form is very long and i need to shorten it.
Thank You
Posted 17 years ago # -
ok i found the answer to my first question
Posted 17 years ago # -
ok maybe i didnt i edited
define('NOTIFICATION_MAIL_FROM_NAME',''); //default is 'MachForm'
define('HostApply',''); //default is 'MachForm'
and wheni received the email it says NOTIFICATION_MAIL_FROM_NAME
Posted 17 years ago # -
this is what my emails looks like i want to maybe add a break inbetween or something so its not this crowded
1) Last Name: - kavazovic
2) Host Mother’s Name: - asdasd
3) Host Father’s Name: - dsfsdfsdfs
4) Date of Birth: - 02/02/1984
5) Date of Birth: - 02/02/1984
6) Address - Street Address - 3024 mc millan rd
7) Address Line 2
8) City - abbotsford
9) State/Province/Region - bc
10) Zip/Postal Code - v3s6h4
11) Country - Canada
12) Home Phone: - (604) 852-3061
13) Email - adnanhz@gmail.com
14) Fax:
15) 1.) - hjkghjkghjk
16) 2.) - hjkghjk
17) 3.) - ghjkghjk
18) 4.) - ghjkghjk
19) What languages does your family usually speak at home? - hjkghjkghjk
20) Has your family hosted an exchange student before? - ghjkgh
21) If yes, student’s name: - jhklhjkl
22) Would your family prefer to host a male, or female exchange student? - hjlhjlkjl
23) Yes
24) No - Yes
25) I would like to host for - Five Months
26) Would your family prefer to host a student from a specific country? - No
27) If yes, which country? - lhjkhjkl
28) Does anyone smoke in your home? - jklhjkl
29) Would you accept a student that smokes? - jklhjlk
30) Briefly describe why your family would like to host an exchange student:
jhklhjk31) Please list your family’s hobbies or recreational activities.
hjklhjlhjkl32) If yes, which religion? - hjlkhjk
33) How would you describe your family’s religious activity?
lhjklhjlk34) How would your family feel about hosting a student with different religious beliefs, or one with no religious affiliations?
jhklhjlk35) What household chores or responsibilities would you expect of your exchange student?
jklhjlkh36) If yes, please list:
hljklhkjlk37) Which high school would you like your exchange student to attend? - jhlkhjkl
38) What is the approximate distance between your home and the high school? - hjklhjklhjk
39) If yes, please describe:
jklhjlkhj40) If yes, please describe:
jklhjkljklhj41) Does your family have a religious affiliation? - No
42) Would your student share a bedroom? - No
43) Do you keep any pets in your home? - Yes
44) Would your exchange student have access to a quiet study area in your home? - Yes
45) Does anyone in your household have a serious or chronic illness, disability, nervous or mental disorder? - No
46) Has anyone in your household undergone major surgery for a condition which may recur? - No
47) If yes, please describe:
jklhjlhjkl48) If yes, please describe:
hjlkhjkl49) Has anyone in your household experienced an alcohol-related problem? - Yes
50) Does anyone in your household have a criminal record? - Yes
51) Occupation: - hjklhjlhjk
52) Work telephone number: - (524) 524-2422
53) Employer: - hjgmhjmgh
54) How long have you worked here? - 524
55) Occupation: - ghkjghjkgh
56) Work telephone number: - (254) 752-2546
57) Employer: - fdghdfhg
58) How long have you worked here? - hgjmghmj
59) Name - First
60) Name - Last
61) Address - Street Address
62) Address Line 2
63) City
64) State/Province/Region
65) Zip/Postal Code
66) Country
67) Phone
68) Name - First
69) Name - Last
70) Address - Street Address
71) Address Line 2
72) City
73) State/Province/Region
74) Zip/Postal Code
75) Country
76) Phone
77) Name - First
78) Name - Last
79) Address - Street Address
80) Address Line 2
81) City
82) State/Province/Region
83) Zip/Postal Code
84) Country
85) Phone
86) Name - First
87) Name - Last
88) Address - Street Address
89) Address Line 2
90) City
91) State/Province/Region
92) Zip/Postal Code
93) Country
94) Phone
95) Name - First
96) Name - Last
97) Address - Street Address
98) Address Line 2
99) City
100) State/Province/Region
101) Zip/Postal Code
102) Country
103) Email
104) Phone
105) LETTER FROM THE HOST FAMILY:
106) Attach recent photo of your family.
3b.gif
107) Attach recent photo of your home.
365_banner.gif
108) Attach photo of student’s bedroom.
3b.gif
109) Attach photo of bathroom.
3b.gifPosted 17 years ago # -
Hmm..your form is quite long indeed.
What you can do at this moment is to add a break in between.
Let say you want to add a break for every 5 fields.Open this file: includes/helper-functions.php
Find this code (should be around line 370-375):
foreach ($email_data as $data){ $email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} "; $i++; }
Replace that code with this one:
foreach ($email_data as $data){ $email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} "; $i++; if(($i % 5) == 0){ $email_body .= "-------------------<br/><br/>"; } }
That code should add a break for every 5 fields.
MachForm Founder
Posted 17 years ago # -
sorry but now its even more confusing
1) Last Name: - dfghdfghdfg 2) Host Mother’s Name: - hfdghdfhg 3) Host Father’s Name: - dsdfsdf 4) Date of Birth: - 04/21/1985 -------------------
5) Date of Birth: - 04/13/1985 6) Address - Street Address - sdfsdf 7) Address Line 2 - sfs 8) City - abbotsford 9) State/Province/Region - bc -------------------
10) Zip/Postal Code - v3s6h4 11) Country - Canada 12) Home Phone: - (456) 456-4564 13) Email - adnanhz@gmail.com 14) Fax: -------------------
15) 1.) 16) 2.) 17) 3.) 18) 4.) 19) What languages does your family usually speak at home? - jfhgjfghj -------------------
20) If yes, student’s name: 21) Yes - Yes 22) No 23) Would your family prefer to host a male, or female exchange student? - Male 24) Would your family prefer to host a student from a specific country? - Yes -------------------
25) If yes, which country? - hgf 26) Does anyone smoke in your home? - fghj 27) Would you accept a student that smokes? - gfhj 28) Briefly describe why your family would like to host an exchange student:
fgj
29) Please list your family’s hobbies or recreational activities.
gj
-------------------30) If yes, which religion? - gfjh 31) How would you describe your family’s religious activity?
fgj
32) How would your family feel about hosting a student with different religious beliefs, or one with no religious affiliations?
fgjfhg
33) What household chores or responsibilities would you expect of your exchange student?
ghjfg
34) If yes, please list:
gfhjfg
-------------------35) Which high school would you like your exchange student to attend? - jfghjfg 36) What is the approximate distance between your home and the high school? - jfgjhfg 37) If yes, please describe:
ghjgfhj
38) If yes, please describe:
ghjfghj
39) Does your family have a religious affiliation? - Yes -------------------40) Would your student share a bedroom? - No 41) Do you keep any pets in your home? - Yes 42) Would your exchange student have access to a quiet study area in your home? - Yes 43) Does anyone in your household have a serious or chronic illness, disability, nervous or mental disorder? - No 44) Has anyone in your household undergone major surgery for a condition which may recur? - No -------------------
45) If yes, please describe:
fgjfgjh
46) If yes, please describe:
gfhjfghj
47) Has anyone in your household experienced an alcohol-related problem? - Yes 48) Does anyone in your household have a criminal record? - Yes 49) Occupation: - ghjgfhj -------------------50) Work telephone number: - (476) 756-5674 51) Employer: - hgdhdgf 52) How long have you worked here? - 54 53) Occupation: - dfhdfhd 54) Work telephone number: - (567) 457-4567 -------------------
55) Employer: - ghdhdhdfg 56) How long have you worked here? - dfhg 57) Name - First - fdgh 58) Name - Last - fgh 59) Address - Street Address - fgh -------------------
60) Address Line 2 - fgh 61) City - fgh 62) State/Province/Region 63) Zip/Postal Code - fgh 64) Country - Fiji -------------------
65) Phone - (546) 434-5634 66) Name - First - fghg 67) Name - Last - hdf 68) Address - Street Address - dfhg 69) Address Line 2 - fgh -------------------
70) City - fgh 71) State/Province/Region - fgh 72) Zip/Postal Code - fgh 73) Country - Belarus 74) Phone - (604) 456-4567 -------------------
75) Name - First 76) Name - Last 77) Address - Street Address 78) Address Line 2 79) City -------------------
80) State/Province/Region 81) Zip/Postal Code 82) Country 83) Phone 84) Name - First -------------------
85) Name - Last 86) Address - Street Address 87) Address Line 2 88) City 89) State/Province/Region -------------------
90) Zip/Postal Code 91) Country 92) Phone 93) Name - First 94) Name - Last -------------------
95) Address - Street Address 96) Address Line 2 97) City 98) State/Province/Region 99) Zip/Postal Code -------------------
100) Country 101) Email 102) Phone 103) LETTER FROM THE HOST FAMILY:
ghjgfhjgfhjfghjfghj
104) Yes - Yes -------------------105) No 106) I would like to host for - Five Month
Posted 17 years ago # -
Sorry, try to change this line:
$email_body .= "-------------------<br/><br/>";
to this:
$email_body .= "<br /><br />-------------------<br/><br/>";
Any better?
MachForm Founder
Posted 17 years ago #
Topic Closed
This topic has been closed to new replies.