<?php
$target_path = "/Applications/XAMPP/xamppfiles/htdocs/www/abc/";//接收文件目录
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
echo($_POST[asktitle]);
echo($_POST[asksex]);
echo($_POST[askage]);
echo($_POST[askdesc]);
echo($_POST[asktel]);
echo($_POST[wdname]);
echo($_POST[tus]);
} else{
echo "There was an error uploading the file, please try again!" . $_FILES['uploadedfile']['error'];
}
?>
$target_path = "/Applications/XAMPP/xamppfiles/htdocs/www/abc/";//接收文件目录
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
echo($_POST[asktitle]);
echo($_POST[asksex]);
echo($_POST[askage]);
echo($_POST[askdesc]);
echo($_POST[asktel]);
echo($_POST[wdname]);
echo($_POST[tus]);
} else{
echo "There was an error uploading the file, please try again!" . $_FILES['uploadedfile']['error'];
}
?>