Yesideez Posted April 24, 2008 Share Posted April 24, 2008 I wrote a very nice PHP script to allow the user to submit up to two attachments that would then be emailed. Windows users experience a fully working script whereas anyone on an Apple Mac gets http error code 500 - internal server error. I've read on a couple websites when trying to resolve a 500 code that it's at the server-end. Unfortunately I don't have access to the server logs and was wondering if someone would be kind enough to explan would could possibly be the problem and even what the cause of the problem could be? The script is a basic HTML form, the PHP parses the form data to validate whatever has been submitted and once that has been cleared the mail function emails everything out. If the data doesn't validate the user is told and given the chance to correct things before submitting the form again. As I said, anyone on Windows can use the web page perfectly fine but Mac users can't - I've not experienced anything like this before! Link to comment https://forums.phpfreaks.com/topic/102679-mac-users-get-error-500/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 24, 2008 Share Posted April 24, 2008 This is just a guess since you did not post your form or your form processing code, but your form is probably invalid html and one browser ignores the bad html and submits the form fields and the other browser does not. The form processing code is probably generating a runtime error or some other issue when no data is submitted. Link to comment https://forums.phpfreaks.com/topic/102679-mac-users-get-error-500/#findComment-525927 Share on other sites More sharing options...
Yesideez Posted April 24, 2008 Author Share Posted April 24, 2008 Thanks for that advice. The file in question was modified before going live online and I've asked the person I gave the script to to check my original script on my web space with a Mac and see if that fails. If it doesn't I'm going with the idea that it's his modifications that have done something. I would post code if it wasn't for a competition for a record company but if we don't get any luck with it then I'm going to have to. Thanks again. Link to comment https://forums.phpfreaks.com/topic/102679-mac-users-get-error-500/#findComment-526339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.