wyllclark Posted May 17, 2014 Share Posted May 17, 2014 Hello I've got this form that keeps messing up. You can get to the link here: http://alexis-apparel.host56.com/ Attached below are all the files. I must have this done by the end of the month please help index.html html_form_send.php upload_file.php Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted May 17, 2014 Share Posted May 17, 2014 just dumping all your code on a help forum isn't going to get you much sympathy or help. what debugging have you done to pin down and solve the problem? also, your deadline isn't OUR problem. telling us 'I've got this form that keeps messing up' is pointless; because we are not standing right next to you and don't know what you saw that leads you to believe that your code didn't do what you expect, nor at what point in the process the problem occurred at (is there a problem with the form page itself, did the form processing code produce an error, or does the received email contain the wrong information.) so, both make an effort to find and solve your own problems and if you have to resort to getting help from someone else, tell them what symptom or error you are getting from the code and at what point in the process you got it. Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted May 17, 2014 Share Posted May 17, 2014 Hi, do you realize that your script can be used to send arbitrary e-mails to any address? SInce you insert the user input straight into the headers and the body, even the dumbest script kiddie can easily assemble their own message and then use the headers to make your server send it anywhere they want. Once the bots have found the contact form, your server will be blacklisted pretty soon, and then you aren't allowed to send any e-mail addresses. You should keep away from low-level functions like mail(), unless you have in-depth knowledge about SMTP and specific reasons for why you need access to the raw mail content. If you just want to send an e-mail, use a library like PHPMailer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.