SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Sep 1999
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am designing a page whereby the user fills out a form & presses submit the variables that the user filled out should be loaded in the hidden variables which opens after the first form is submitted
    The ides is to process all the details together rather thn processing 2 different forms

    Any pointers are welcome

    Thanks

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    If the second form is on a second page (which is opened by the first page), use opener.formname.fieldname.value...etc; if you're using frames, store the values in the parent and then try parent.variables.

    Vinny

    ------------------
    GrassBlade: cut&paste javascript

  3. #3
    SitePoint Member
    Join Date
    Sep 1999
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes the forms are on two seperate pages
    when we click submit the second form should open
    could you please elaborate
    what should be the action of the first form & how do we take the values into the second form

  4. #4
    SitePoint Member
    Join Date
    Feb 2000
    Location
    NY, USA
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using ASP, than inside the form on the second page you would write something like this:

    <input type="hidden" name="txtHidden" value="<% = Request("Field_Name_From_First_Page") %>">

    This will create a hidden field on the second form with data that was entered on the first form.

    Eugene. http://www.interprosolution.com
    FREE Tools & Services for Webmasters

  5. #5
    SitePoint Member
    Join Date
    Sep 1999
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not using asp i am using plain html with java script used at the minimum
    Please help


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
  •