Jump to content

Need Help In Creating Automated Submission Marking System Using Php Or Mysql


ssfox

Recommended Posts

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.