php submit button problem

Discussion in 'Programmer's Corner' started by zimbarak, Jan 14, 2010.

  1. zimbarak

    Thread Starter Active Member

    Feb 8, 2009
    Hi All ,

    im receiving this message while im trying to submit a form
    failed to open stream: No such file or directory
    i have already attached a file but while you submit the form you will receive this message ,also i would like to know what i have to right
    in the file ,name ,project_rooth_path

    Any thread would be appreciated

    php tag :

    $m= new clsEmail;
    $m->Subject(PROJECT_NAME." >> Careers Form Submitted");
    $m->Body( $Content,"utf-8", "text/html");
    if ($file)
    move_uploaded_file($file, PROJECT_ROOT_PATH."tmp/".$HTTP_POST_FILES['file']['name']);
    $m->Attach( PROJECT_ROOT_PATH."tmp/".$HTTP_POST_FILES['file']['name'], "application/x-unknown-content-type", "attachment" );
    $m->Priority(1) ;
    $message="<strong>Message Sent Successfully...</strong><br/>";
    $message="<strong style='color:red'>Please fill in the required fields then try again...</strong><br/>";
    Last edited by a moderator: Jan 14, 2010
  2. avtanski


    May 29, 2008
    First of all, I'm not a PHP guy, so it is quite likely that I'm wrong. But because I don't see any other replies, I'll give it a shot.

    Do you know what PROJECT_ROOT_PATH is set to? The reason I'm asking is that in your code you have


    and if PROJECT_ROOT_PATH does not have the ending "/" included, you may have to change this to


    Again, I might be wrong, but it may be worth asking.
  3. zimbarak

    Thread Starter Active Member

    Feb 8, 2009
    Dude ,ive try it but it didnt work ! need more thread if its possible thnks !