![]() |
|
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) |
Add extra field on contact form - lainyrache - 2010-04-08 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 - 2010-04-09 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 - 2010-04-09 Thanks for your reply! Add extra field on contact form - acrylian - 2010-04-09 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 - 2010-04-09 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 - 2010-04-09 Well, possible it is for sure, it's just code. Add extra field on contact form - lainyrache - 2010-04-09 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 - 2010-04-09 What exactly have you edited so far? You will need to change both Add extra field on contact form - lainyrache - 2010-04-09 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 - 2010-04-09 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. Add extra field on contact form - lainyrache - 2010-04-11 Thank you so much for pointing me in the right direction! As a reference to anyone else who might want to include a checkbox on the contact form, I turned the 'company' field into a checkbox using the following code:
Add extra field on contact form - felipe1982 - 2010-04-12 The current format ("size:media=XX.YY") does not permit any spaces. But How can I include spaces if I desire? Such as in the 'size' or 'media' section? Perhaps a better format can be pure colon delimited, such as sizeome text here includes spaces:XX.YY size2:more text:ZZ:AA And the normal s between elements. One of my clients would like to have the following showing correctly: 5x7:Glossy and Matte=19.95 But the spaces break stuff (and hyphens look ugly). Or, what about just regular strings, such as "5x7 Glossy and Matte":19.95 "next time here":32.99 thoughts? Add extra field on contact form - acrylian - 2010-04-12 About what are you asking actually? This has surely nothing to do with the contact form.... Add extra field on contact form - felipe1982 - 2010-04-12 Oh sh*t - wrong forum ! =( |