![]() |
|
Add extra field on contact form - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Add extra field on contact form (/thread-6886.html) Pages:
1
2
|
Add extra field on contact form - lainyrache - 08-04-2010 Hi I have attempted this by repeating the structure of the code for the other fields wherever it appears on the contact_form.php and contact form/form.php files... Does anybody know if this is possible, and can help me out? Add extra field on contact form - acrylian - 09-04-2010 Well, you need to change the functions that process the POST on the form also. But what field do you need actually? There are really quite a bunch available? Add extra field on contact form - lainyrache - 09-04-2010 Thanks for your reply! Add extra field on contact form - acrylian - 09-04-2010 If you really plan a newsletter I would recommend to use one of the many newsletter scripts available where users can sign in and sign out themselves. That is more convenient for you and your users (and depending on your local laws probably better as well.) Add extra field on contact form - lainyrache - 09-04-2010 Yes we do have a newsletter sign up box as well, but we would like to have the checkbox on the contact form too... if possible! Add extra field on contact form - acrylian - 09-04-2010 Well, possible it is for sure, it's just code. Add extra field on contact form - lainyrache - 09-04-2010 Yes that's what I thought... But if I take the exact code of one of the other fields and change the input type from 'text' to 'checkbox' the information does not get carried through to the confirm stage or the email. Does anybody have any pointers as to what I'm doing wrong? thanks for any help! Add extra field on contact form - kagutsuchi - 09-04-2010 What exactly have you edited so far? You will need to change both Add extra field on contact form - lainyrache - 09-04-2010 After trying various things, I have now basically tried to adapt the 'company' field which was not being used in the form. Add extra field on contact form - sbillard - 09-04-2010 The thing about checkboxes is that they appear as part of the POST result ONLY if they are checked. So you will need to test if the $_POST['company'] (or whatever) field exists. If it does, the box was checked, if it does not, the box was not checked. |