From:             promotions at chicagomusicpromotions dot com
Operating system: linux
PHP version:      4.4.2
PHP Bug Type:     PHP options/info functions
Bug description:  I need help with my music submission page it keeps trying to 
download the file.

Description:
------------
Ok on this page here

http://www.chicagomusicpromotions.com/musicsubmission.htm  

when the people enter their information

and they add their photo and also as well their mp3

once it gets done sending its suppost to refresh back to the main page.

Well for some reason its not doing that and its asking them to download
the process32.php file thats located on the server that process's the form
page  any suggestions?

Reproduce code:
---------------
<?php

@extract($_POST);
$name = stripslashes ($name);
$email = stripslashes ($email);
$subject = stripslashes ($subject);
$text = stripslashes ($text);
$uploaddir = 'uploadphoto/';
$uploadfile = $uploaddir . basename($_FILES['ImageFile']['name']);
if (file_exists ($uploadfile)) {
        //
$message="This file already exists, please rename the file and
re-upload";
} else {
        move_uploaded_file($_FILES['ImageFile']['tmp_name'], $uploadfile);
}

$photopath="http://www.chicagomusicpromotions.com/".$uploadfile;

$uploaddir2 = 'uploadmp3/';
$uploadfile2 = $uploaddir2 . basename($_FILES['MusicFile1']['name']);
if (file_exists ($uploadfile2)) {
        //$message="This file already exists, please rename the file and
re-upload";
} else {
        move_uploaded_file($_FILES['MusicFile1']['tmp_name'], 
$uploadfile2);
}
$mp3path="http://www.chicagomusicpromotions.com/".$uploadfile2;
$message = $name . "\n" . $email . "\n" . $subject . "\n" . $cmail . "\n"
. $city . "\n" . $state . "\n" . $zip . "\n" . $telephone . "\n" .
$services . "\n" . $website . "\n" . $url . "\n" . $photopath. "\n" .
$mp3path. "\n" . $text;
mail ('[EMAIL PROTECTED]',$subject,$message,"From:
$name <$email>");
mail ('[EMAIL PROTECTED]',$subject,$message,"From: $name
<$email>");
header ("location:http://www.chicagomusicpromotions.com/";);
//$fdf = fdf_open_string($HTTP_FDF_DATA); 
//$data = fdf_get_attachment($fdf, "filename", "/uploadmp3");
?>

Expected result:
----------------
its going to ask you to download the php file for the header information
and well i dont know how to fix that.


Actual result:
--------------
its suppost to go back to 

http://www.chicagomusicpromotions.com

after the info has been submitted.

-- 
Edit bug report at http://bugs.php.net/?id=37015&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37015&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=37015&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37015&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37015&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37015&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37015&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37015&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37015&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37015&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37015&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37015&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37015&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37015&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37015&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37015&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37015&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37015&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37015&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37015&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37015&r=mysqlcfg

Reply via email to