Results 1 to 5 of 5

Thread: please help me its an easy one but an urgent one ??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    103

    Wink please help me its an easy one but an urgent one ??

    i have 4 forms and want to at the end of the 4 forms only then do my insert into the database how do i use hidden fields on each page to keep parsing the data to the final page so i can do my insert ???

    IE
    firstname is the naem of my textbox control on my firstform how do i get the data to the hiddenfield called firstname in my Second form
    i cannot get this right

    hiddenform value = request.form("firstname")

    but this does nothing ???

    pelase help me out!!

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    ...because ASP cannot refrence objects on the HTML page !!

    ASP is Server Side, so it is executed on the server. HTML/Javascript is processed on the client. So the two have no way of interacting with each other.

    But...

    You can do it this way:

    Code:
      <INPUT TYPE=hidden NAME=MyHiddenInput VALUE=<%=Request.Form("MyVariable")%>
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    103
    i have tried using your method..
    it does not work

    im using ASP pages and need to parse the data from my first asp form
    to the send page/form into a hidden field on my second page ????

  4. #4
    Lively Member
    Join Date
    Jan 2001
    Posts
    72

    should work

    sastraxi's method should work...

    on second page...

    <% dim strFName
    strFName = request.form("nameOfTextBox")%>

    then in your form, pass strFName as a hidden variable

    <input type="hidden" name="firstName" value=<%=strFName%>>

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    Oh!!!

    If you are using METHOD=GET on your form, (I think it is default) then you must use Request.Querystring("Name_Of_Text_Box")
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

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



Click Here to Expand Forum to Full Width