ZenphotoCMS Forum
Passing functions through built-in contact form - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Passing functions through built-in contact form (/thread-5227.html)



Passing functions through built-in contact form - joepinelli - 2009-05-25

I'm using the built-in zen contact form on my image.php page. It works great, but I was hoping to have the form email me the name of the image the user was on when they filled out the contact form.

I've experimented with editing the contact form by adding a text field or a hidden form field with the "print" or "get" "ImageTitle" and "bareImageTitle" functions. Unfortunately, the data did not show up on the email I received. I would appreciate any help in pointing me in the right direction.

Thanks




Passing functions through built-in contact form - sbillard - 2009-05-25

Did you modify the contact_form POST handling to process the extra field and to insert it into the email message?




Passing functions through built-in contact form - joepinelli - 2009-05-26

Thanks sbillard. I'm not sure if all my code is necessary or correct, but I got it work. I added this to form.php:

`