piki007

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: File uploat from a form – Project planner #14200

    piki007
    Participant

    Upsss … I see filetypes … I was tooo quick … I will try it.

    in reply to: File uploat from a form – Project planner #14199

    piki007
    Participant

    I seems to be working now on demo, but there is a problem with filetypes. It does not take pdf files, or doc , docx files … that are verry common web files. Where can I add additional file types.

    Regards, Matjaz

    in reply to: File uploat from a form – Project planner #14172

    piki007
    Participant

    IT DOES NO WORK! In the file sendmail.php you have gmail acess as well. So enter data to the form and go see the email.
    In your form there is nothnig on email it does not even send.

    in reply to: File uploat from a form – Project planner #14154

    piki007
    Participant

    URL to contact form:
    http://www.commaserver.com/abthemes/contact.php

    in reply to: File uploat from a form – Project planner #14023

    piki007
    Participant

    This does not work either.

    in reply to: File uploat from a form – Project planner #13958

    piki007
    Participant

    Zdravo

    hehe. Najprej to je html predloga in ne wordpress. Tako da tista prva slika odpade.
    Druga slika, pa browse gumb je seveda v formi v bistvu je kar identična tisti v demotu. Texti iz polj pridejo na e-mail tako da je konfiguracija e-poste tudi ok. Ni pa priložene datoteke.

    Pošiljanje se odvije skozi /php/sendmail.php

    tukaj je zgornji del, kaj imam v sendmail.php (samo konfiguracija smtp je se spodaj):

    <?php

    $message_array = array();

    if(isset($_POST[‘formid’]) && $_POST[‘formid’]==’planner’){
    $subject = “Quote Request via Project Planner”;

    if(empty($_POST[‘name’])) $message_array[] = ‘Name’;
    if(empty($_POST[’email’])) $message_array[] = ‘Email’;
    if(empty($_POST[‘project-details’])) $message_array[] = ‘Project Details’;
    $body = ‘Name: ‘.$_POST[‘name’].'<br>’;
    $body .= ‘Email: ‘.$_POST[’email’].'<br>’;
    $body .= ‘Phone: ‘.$_POST[‘phone’].'<br>’;
    $body .= ‘project-details: ‘.$_POST[‘project-details’].'<br>’;
    // $body .= ‘file-attachment: ‘.$_POST[‘file-attachment’].'<br>’;
    // $body .= ‘project-type: ‘.$_POST[‘project-type’].'<br>’;
    $body .= ‘start-date: ‘.$_POST[‘start-date’].'<br>’;
    $body .= ‘due-date: ‘.$_POST[‘due-date’].'<br>’;
    $body .= ‘budget: ‘.$_POST[‘budget’].'<br>’;
    }
    else{
    $subject = “VLC2 Contact form”;

    if(empty($_POST[‘name’])) $message_array[] = ‘Name’;
    if(empty($_POST[’email’])) $message_array[] = ‘Email’;
    if(empty($_POST[‘subject’])) $message_array[] = ‘Subject’;
    if(empty($_POST[‘message’])) $message_array[] = ‘Message’;
    $body = ‘Name: ‘.$_POST[‘name’].'<br>’;
    $body .= ‘Email: ‘.$_POST[’email’].'<br>’;
    $body .= ‘Subject: ‘.$_POST[‘subject’].'<br>’;
    $body .= ‘Message: ‘.$_POST[‘message’].'<br>’;
    }

    if(sizeof($message_array)==1){
    $message = $message_array[0].’ is required field.’;
    }
    elseif(sizeof($message_array)>1){
    $message = join(‘ and ‘, array_filter(array_merge(array(join(‘, ‘, array_slice($message_array, 0, -1))), array_slice($message_array, -1)))). ‘ are required fields.’;
    // $message = implode(‘, ‘, $message_array). ‘ are required fields.’;
    }
    else{
    $message = ”;
    }

    if($message==” && (isset($_POST[‘action’]) && $_POST[‘action’]==’js’)){
    require_once(‘class.phpmailer.php’);
    include(“class.smtp.php”);

Viewing 6 posts - 1 through 6 (of 6 total)