Hi everyone, just a quickie (hopefully!).
I've been following the instructions of a kb article here to add a custom field to the Contact Us Form.
The reason being, we have several sites (6 live atm with more planned) and basically all the emails are received to the same email address, regardless of the site.
So, this leaves us with a problem, because unless the customer drops us some kind of hint in their email, we can't really tell which site the email has come from.
This made me think about the possibility of including a hidden field within the contact us form, and sending the value of the field along with the rest of the email contents.
I have been through the instructions in the kb article several times, and still manage to get an error ("The server encountered an internal error or misconfiguration and was unable to complete your request.") when I try to load the Contact Us page after uploading the new MailForm.pl. Change it back to the original and the page loads fine.
So, is it even possible to pass the contents of a hidden field into the email, or am I just making a really simple mistake in the code somewhere? Or am I trying to get too complicated and there's an easier way of doing what I want?
I have tried to search to forum but couldn't find anything regarding passing hidden fields...
I'm on v9.0.3 IMMA if it helps.
Edited MailForm.pl code attached.
Thanks in advance
I've been following the instructions of a kb article here to add a custom field to the Contact Us Form.
The reason being, we have several sites (6 live atm with more planned) and basically all the emails are received to the same email address, regardless of the site.
So, this leaves us with a problem, because unless the customer drops us some kind of hint in their email, we can't really tell which site the email has come from.
This made me think about the possibility of including a hidden field within the contact us form, and sending the value of the field along with the rest of the email contents.
I have been through the instructions in the kb article several times, and still manage to get an error ("The server encountered an internal error or misconfiguration and was unable to complete your request.") when I try to load the Contact Us page after uploading the new MailForm.pl. Change it back to the original and the page loads fine.
So, is it even possible to pass the contents of a hidden field into the email, or am I just making a really simple mistake in the code somewhere? Or am I trying to get too complicated and there's an easier way of doing what I want?
I have tried to search to forum but couldn't find anything regarding passing hidden fields...
I'm on v9.0.3 IMMA if it helps.
Edited MailForm.pl code attached.
Thanks in advance
Comment