Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

simple asp problem

  • 17-10-2003 12:10PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 3,890 ✭✭✭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