hai
the main goal is to upload the file ,for that purpose it is enough to use my code.but i cant understood your problem. do you want to upload the contactus page?
then by executing upfile.php you should browse the location of contactus page.
hai
the main goal is to upload the file ,for that purpose it is enough to use my code.but i cant understood your problem. do you want to upload the contactus page?
then by executing upfile.php you should browse the location of contactus page.
hai,
I cant understood ur problem
the main goal is to uplaod file.for that purpose it is enough to use my code .
first executing the upfile.php from that you can browse the contactus page
I have a CONTACT US PAGE... which uses PHP TO send EMAIL to me, i want to add an UPLOAD FILE field WITHIN THAT PHP file THAT im already using... do you understand now?
then please put the action from contactus page to upfile.php
or
you can also use the code with in contactus page by using include("upfile.php");
or
do you want to insert that code into your contactus page then copy the code and put in contactus page and use the text field names same means i used uploadedfile in upfile.php and it occurs 3 times in upload_file.php.if u want to change it then replace it in 3places.
Last edited by ganu; 04-20-2009 at 12:50 PM.
hi i made this now and its not uploading..
PHP Code:if(isset($_POST['submit'])) {
$target_path = "uploads/";
echo $target_path."<br>";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
$to = "email";
$clientid = "13001";
$mail = "1";
$subject = $_POST['subject'];
$message = $_POST['message'];
$message1 = $_POST['message1'];
$body = "E-Mail: $mail\n Client Id: $clientid\n Comment:\n $message\n Suggestion:\n $message1";
echo "Email Sent";
mail($to, $subject, $body, "From: $mail");
} else {
echo "invalid!";
}
Last edited by Snookerman; 04-21-2009 at 07:48 AM. Reason: added [php] tags
please can anyone help me in this? i tried other scripts as well and no one is working..
bump...
hey you put in action in the form tag to upload_file.php
i specied above action="upfile.php " not to upload_file.php in contactus.php
<form enctype="multipart/form-data" action="upload_file.php" method="POST">
Bookmarks