Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

simple asp problem

Options
  • 17-10-2003 1:10pm
    #1
    Registered Users Posts: 446 ✭✭


    I'm trying to do my asp assignment, which we have yet to be taught any programming.

    Anyway, I managed to get a few tutorials online and got something up.
    My problem is:

    I have a html page with a form on it (no asp at all)

    and an asp page...which is the one that will print out the data, I assume I need a( #include page1.html )t hing but this doesnt work, maybe I have the syntax wrong?


Comments

  • Registered Users Posts: 3,886 ✭✭✭cgarvey


    I have no idea what you're getting at with the include thing, but if you just want to print out the values entered, use the following example...

    test.html
    <html>
    ..
    <form method="post" action="test.asp">
    Name: <input type="text" name="username">
    </form>
    ..
    </html>
    

    test.asp
    <%@LANGUAGE="JAVASCRIPT"%>
    <htmL>
    ...
    <%
      Response.write( "Entered username was: " + Request( "username" ) + "<br>" );
    %>
    ...
    


Advertisement