SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast lucky20's Avatar
    Join Date
    Oct 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with textbox hidden field

    hi

    I have an asp form contain multiple text boxes to enter data.

    After entering data if I click on add button it should display the same page again and security text box should in invisible.

    For that do i need to to declare text box as hidden..

    But I need that text box for first time after redirecting it should be invisible..


    I am confusing here .. What i need to declare for that textbox..


    this is my code

    <html>
    <body>
    <form method="post" action="security.asp"

    Id<input type="text" name="id">
    Name<input type="text name="name">

    securitycode<input type="text" name="scode">
    <input type="submit" value="done" name="submit">

    If request.form("submit") <> "" then

    ----
    //Sql query////
    ---
    End If


    </form>
    </body>
    </html>

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What is the purpose of the security code? What does it mean? What does it do for you?
    Ian Anderson
    www.siteguru.co.uk

  3. #3
    SitePoint Enthusiast lucky20's Avatar
    Join Date
    Oct 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    regarding security code

    It doen't do any thing..it is exactly like normal field...

  4. #4
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Perhaps you haven't understood my question. WHY do you need the security code? WHY should it be invisible AFTER the form is first submitted?

    I'm trying to understand what you are trying to do - I suspect that what you're wanting to do can be done in a much better way.

    To make a form element invisible (but still in the form) ...

    Code:
    <%
    ' To get the current value of the security code from the form
    scode = Request.Form("scode")
    %>
    <input type="hidden" name="scode" value="<% =scode %>">
    Ian Anderson
    www.siteguru.co.uk

  5. #5
    SitePoint Enthusiast lucky20's Avatar
    Join Date
    Oct 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    @ site guru..

    I am trying an example of hidden field in various ways..I found this in an ASP book..

    Thanks a lot..


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •