Hi
I have a form with a checkbox group containing something similar to
I have a setup with custom code
[code]Array
(
[chronoform] => doggycentreadvice
[event] => submit
[checkbox] => advice_puppy_health,advice_separation
[name] => xxx yyyy
[email] => xxx@superpan.org
[subject] => Advice Sheet
[message] => Hi xxx
......
.....
[chrono_security_answer] =>
[submit] => Submit
[file_array] => /home/superpan/public_html/doggycentre.com/images/pdf/staff/advice_puppy_health.pdf,/home/superpan/public_html/doggycentre.com/images/pdf/staff/advice_separation.pdf
[ip_address] => 82.1.167.172
)
No errors
Array
(
[6] => Array
(
[Check Security Question] => Array
(
[0] => Passed the answer check!
)
)
[1] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:xxx@doggycentre.com
[2] => Subject:Advice Sheet
[3] => From name:Doggy Centre Admin
[4] => From email:xxx@doggycentre.com
[5] => CC:
[6] => BCC:
[7] => Reply name:xxx
[8] => Reply email:xxx@superpan.org
[9] => Attachments:
[10] => Array
(
)
[11] => Body:
<table>
<tr><td>Advice</td><td>[b]advice_puppy_health,advice_separation[/b]</td></tr>
<tr><td>Name</td><td>xxxx</td></tr>
<tr><td>Email</td><td>xxx@superpan.org</td></tr>
<tr><td>Subject</td><td>Advice Sheet</td></tr>
<tr><td>Message</td><td>[b]Hi xxx[/b]<br />
<br />
Please find the attached advice sheet(s) for you information.<br />
</td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 82.1.167.172
)
)
)[/code]
I have several questions...
1) How do I get the [b]file_array[/b] to be emailed ?
I have {file_array} in the email attachments
2) How do I get the description_n in to the email rather than fn_n
3) From the name field, how do I pick up the first word of the name field to use as part of a greeting?
4) Is there a simple way to verify the files exist before emailing? Do I have the correct root for files to be attached?
Sorry to ask so many questions but I have been struggling and I am a noob with Joomla, php and chronforms.
Cheers...
Pete
I have a form with a checkbox group containing something similar to
fn_1=description_1
...
fn_n=description_n
I have a setup with custom code
[code]Array
(
[chronoform] => doggycentreadvice
[event] => submit
[checkbox] => advice_puppy_health,advice_separation
[name] => xxx yyyy
[email] => xxx@superpan.org
[subject] => Advice Sheet
[message] => Hi xxx
......
.....
[chrono_security_answer] =>
[submit] => Submit
[file_array] => /home/superpan/public_html/doggycentre.com/images/pdf/staff/advice_puppy_health.pdf,/home/superpan/public_html/doggycentre.com/images/pdf/staff/advice_separation.pdf
[ip_address] => 82.1.167.172
)
No errors
Array
(
[6] => Array
(
[Check Security Question] => Array
(
[0] => Passed the answer check!
)
)
[1] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:xxx@doggycentre.com
[2] => Subject:Advice Sheet
[3] => From name:Doggy Centre Admin
[4] => From email:xxx@doggycentre.com
[5] => CC:
[6] => BCC:
[7] => Reply name:xxx
[8] => Reply email:xxx@superpan.org
[9] => Attachments:
[10] => Array
(
)
[11] => Body:
<table>
<tr><td>Advice</td><td>[b]advice_puppy_health,advice_separation[/b]</td></tr>
<tr><td>Name</td><td>xxxx</td></tr>
<tr><td>Email</td><td>xxx@superpan.org</td></tr>
<tr><td>Subject</td><td>Advice Sheet</td></tr>
<tr><td>Message</td><td>[b]Hi xxx[/b]<br />
<br />
Please find the attached advice sheet(s) for you information.<br />
</td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 82.1.167.172
)
)
)[/code]
I have several questions...
1) How do I get the [b]file_array[/b] to be emailed ?
I have {file_array} in the email attachments
2) How do I get the description_n in to the email rather than fn_n
3) From the name field, how do I pick up the first word of the name field to use as part of a greeting?
4) Is there a simple way to verify the files exist before emailing? Do I have the correct root for files to be attached?
Sorry to ask so many questions but I have been struggling and I am a noob with Joomla, php and chronforms.
Cheers...
Pete