So where you have mail("$uploadedfile"), that is where the message would be? Thanks.
So where you have mail("$uploadedfile"), that is where the message would be? Thanks.
yes..
mail("$uploadfileurl");
uploadfileurl is what the url is whats going to be send to them..
so they know where the file is.
or message..
Hey new design new look, goto xudas for personal webdsign help..(:
Thank You. Now one last question and I hope I can be done with this. I don't know anything about php, but from what others have helped me with. How do I incorporate it within the form so that when a file is successful it send this email?
I would make a process.php page. or same page.. its really hard, and took me for ever to make my host script that kinda does the same thing..
uhmm.. idea? well after it process your gonna wanna put the mail process rght after the code..
I can't do it right now but I can try tomorrow... not really sure if I can even do it..
Hey new design new look, goto xudas for personal webdsign help..(:
Need some help, I have been trying to understand the order of what goes where to get it to function properly, is this correct. It gives me errors, of course.
Not sure if I really need the if($submit)???PHP Code:#-----------------------------------------------------------#
# this function will upload the files. :) ;) cool #
#-----------------------------------------------------------#
if (move_uploaded_file($file_tmp,$upload_dir.$file_name)) {
echo "File $i: ($file_name) has been uploaded successfully.";
}
$to = "pss_2002@hotmail.com";
if($submit)
{
mail("[I]Email Message[/I]")
}else{
echo "File $i: Faild to upload.";
}#end of (move_uploaded_file).
Okay, after some looking around on the net, I have found an script that contained the necessary parts for sending out emails and it works! Now the problem, the email doesn't come to me with line breaks in it as I have put them in using <br>. Is there a specific way or another piece of code that I am missing or need to us? I need to also know how to create links and a bulleted list in the email as well as my attempts with html code inside the email have failed.
I need help with getting this to work in an upload form. I get it to where I can see the two radio buttons, but when I click on one, it doesn't want to show the rest of the form.
The initial setting is $num_files = 0 at the very begging of the script, as you select a radio button is suppose to show you the that amount of forms either it be 1 or 3.
PHP Code:echo " <input type=\"radio\" onclick= $num_files=3 name='1'>
<input type=\"radio\" onclick= $num_files=1 name='1'>
if ($num_files < 0){
echo " <form method=\"post\" action=\"$_SERVER[PHP_SELF]\" enctype=\"multipart/form-data\">";
// show the file input field based on($num_files).
for ($i = 1; $i <= $num_files; $i++) {
echo "File $i: <input type=\"file\" size=\"70\" name=\"file". $i ."\"><br><br>";
}
Okay, I got it to where when I click on what I want the selection is shown, but the issue that I have now is that all the available selections are capable of being seen. How can I hide those selections or call their function.
When you guys get this done, let me know. I never even knew that files could be POSTed via a form.
Take a look at the following: FTP Upload Form
Bookmarks