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.

ASP & HTML FORMS (n00b)

  • 13-12-2006 06:39PM
    #1
    Closed Accounts Posts: 521 ✭✭✭


    Hey all.

    I need to find out how to Get a label with asp and put it into a variable.

    e.g.
    <body>
    <form method="post">
    <label name="1">blah blah blah</label>
    </form>
    
    dim la
    la=Request.Form("1")
    Response.Write("label is " & la & "!<br />")
    
    </body>
    

    I had thought this would print "label is blah blah blah!" to the screen.

    It doesnt.
    (its saved in a .asp file)

    Is it possible?

    Thanks.


Comments

  • Moderators, Politics Moderators, Paid Member Posts: 44,042 Mod ✭✭✭✭Seth Brundle


    have you submitted the form?
    maybe read http://www.w3schools.com/asp/asp_inputforms.asp
    <body>
    <form method="post">
    [B]<!--<label name="1">blah blah blah</label>-->
    <input type="text" name="1" value="blah blah blah" />
    <input type="submit" />[/B]
    </form>
    [B]<%[/B] 'don't forget your ASP tags!!!!!
    dim la
    la=Request.Form("1")
    Response.Write("label is " & la & "!<br />")
    [B]%>[/B]
    </body>
    


Advertisement