I am needing a page with a site with a form that does two things: takes a report and uploads it towards the server (supposed to get an image but I’ll probably allow any filetype, user error should end up being practically impossible on this particular case), next sends out any notification email.
What’s the most effective way to approach file uploads In this case, I don’t should want to do any operations to the files or continue special track of ’em at all, so I suppose the best possible implementation is going to do. Is it doable w/o using CGI/Perl, PHP, or even, heaven-forbid ASP We’ve not created a good upload form w/o all those before, and was wondering if there’s any possible HTML variety implementation usable in cases like this…
I want to get this working right now, so I guess I’m interested in whatever I can certainly throw up and obtain working the speediest…
I don’t know if there’s how to do it without using a server-side terms. It’s pretty uncomplicated in PHP. I need ideas of about the other people.
Through the W3 Schools: Archive Upload, and Contact.
What accomplish ya think is actually easier/faster, PHP or even CGI
Exercise have never studied CGI by any means, so I probably are not the best particular person to ask. However I’m a rookie at PHP, and I understand how to do a document upload and give email.
Database access might be preferable for that PHP, but a much simpler and far a reduced amount of secure method would involve making a directory. I feel that tutorial goes into it on some level. If you might have PHP on your own server, you probably have phpMyAdmin to get a MySQL database, plus it has a extremely easy-to-use interface.
I’d need to suggest PHP in your case. The help file incorporates a good explaination to create an upload, together with many useful thoughts, notes, and dire warnings.
CODE itself, as far as I realize, has no filehandling capabilities. Neither does JS. So a server-side should be easier, if not really a must.
I have always used CGI with regard to email… I can’t find the PHP mail function to your workplace. I guess my server’s not set to deal with it… the record upload is operating great though…
Post your code and we will browse for you.
Now i am just calling that mail function within PHP…
< php
$to = "myemailmydomain. com";
$subject = "The Subject";
$message = "A Message";
$headers = "From: someonelsetheirdomain. com";
mail($to, $subject, $message, $headers);
>
I guess there just isn’t the PHP email system setup on my machine…
What happens once you try to send out the email Maybe the email address you are trying to email is getting some problems.
Try like: http: //email. concerning. com/cs/phpemailtips/qt/et031202. htm
*doh! * I have been previously updating the wrong file the full time… it’s most working now. Bless you.