Click here to Skip to main content
15,741,811 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
I would like to come up with a web application from that submits information from the students ie.. the name, reg no, course title and also to calculate the total, average and grading.

I'm using web matrix as the code editor.
So far, I have completed the html part of the code(form). The problem is on asp/vbscript.
I have linked two file "html and asp" but I can't seems to write the asp code that works..

What I have tried:

<%@ Language="VBScript" %>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>

        <%
            
            Dim student, reg, cous

        student = request.form("student")
        reg = request.form("reg")
        cous = request.form("cous")
        
        Response.Write("Student Name: " & student & "<br />")
        Response.Write("Registration Number: " & reg & "<br />")
        Response.Write("Course Title: " & cous & "<br />")
            

        %>                         
                               
    </body>
</html>
Posted
Comments
CHill60 10-Aug-20 7:23am    
You will need to show us your attempt at writing the ASP code and tell us what goes wrong with it
Jin Vincent Necesario 14-Aug-20 7:37am    
Have you tried to create a form that will get the student grades via user input, and when it is submitted you can then call the request.form("student")... and related fields to get the values and computer for their grades. Please post your complete solution, so we can help you out.
Cheers,
Jin

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900