2012-03-03, 22:57:05
Rene Wrote:Donuts Wrote:Hi, great plugin!
But I also need an option for a "file upload" like: http://cgi-lib.berkeley.edu/ex/fup.html. Its a sample file upload form.
I noticed that there was an file option in p01-contact.php.
So I thought I could do something simple like:Code:/**
* Return the general type of a field, even of specials fields.
*/
function general_type()
{
$types = array(
'name' => 'text',
'email' => 'text',
'phone' => 'text',
'website' => 'text',
'subject' => 'text',
'address' => 'textarea',
'message' => 'textarea',
'file' => 'file',
'captcha' => 'captcha',
'askcopy' => 'checkbox');
if(isset($types[$this->type]))
return $types[$this->type];
else return $this->type;
}
But that does not work as I expected.Code:(% contact : name!, email!, file "File upload:",captcha! %)
So what am I doing wrong? Help is appreciated. Greetings, Tom.
@Donuts
See row 990 in p01-contacts.php
//case 'file' :
Have you tried to enable this?
Hi René, just tried it and ... nope.
But this time I received the "file name" in the email. It is still not what I had in mind. But thanks for thinking along. Though I still hope that someone can fix this.