ssfox Posted September 27, 2012 Share Posted September 27, 2012 Hello web developers, I'm designing my own website, I want to create online assignment submission system which allows to students to upload their assignment through this webpage,and receive feedback immediately via the browser.The teacher can recieve student documents and grade the student for his assignment. Since Im working on my localhost(XAMMP), let say now Im the student and teacher(Admin) at same time because the work will done in my localhose. so far I just was able to upload file using this php code <form action="upload.php" enctype="multipart/form-data" method="post"> <p> Type some text (if you like):<br> <input type="text" name="textline" size="30"> </p> <p> Please specify a file, or a set of files:<br> <input type="file" name="file" id = " file" size="40"> </p> <div> <input type="submit" id ="u_button" name = "u_button" value="Send"> </div> </form> I know this code simple for uploading file . I have to code " upload.php" inorder to send the uploaded file to my server(XAMMP), How can this be done? and How can I create in my database online submission system for student and teacher that I described above. Your Help would be much appreciated if was provide with source code for explanation. Quote Link to comment https://forums.phpfreaks.com/topic/268853-need-help-in-creating-automated-submission-marking-system-using-php-or-mysql/ Share on other sites More sharing options...
Christian F. Posted September 27, 2012 Share Posted September 27, 2012 I'd start with the PHP manual, both the Getting started and the File uploads sections. Do note that you need to verify not only the data send by the client, but that the file is indeed of the correct type too. For that you cannot rely upon only file extension or MIME type, but you have to verify the actual content as well. Also, please use the [code][/code] tags around your code, as it helps make both your post and your code a lot easier to read. Quote Link to comment https://forums.phpfreaks.com/topic/268853-need-help-in-creating-automated-submission-marking-system-using-php-or-mysql/#findComment-1381372 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.