CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    23

    Question How to get the value of text field into another textfield which is there in different

    Hi,

    Can any one tell "How to get the value of text field into another textfield which is there in different html page without redirecting that page using Javascript..."

    For example,I have page1.html with two text fields and one button. page2.html with two text fields and one button.

    In page1.html,there is a text field for date entry.after filling the fields,the save button is clicked by which all the values are saved and control will be in the same page.page1.html is not redirecting to page2.html.

    When i open page2.html,one of the textfield in this page should filled with that value (i.e date) which is entered in the page1.html.

    Can someone please help me?

    Tahnk you...

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: How to get the value of text field into another textfield which is there in diffe

    The only way to do this on the client-side (without involving server-side code) is by using cookies.

    http://www.google.com/search?source=...=Google+Search
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jan 2008
    Posts
    23

    Re: How to get the value of text field into another textfield which is there in different

    Hi,

    Thank you for ur reply.....

    Am new to java....

    Will you please give outline code of cookies which are used to store the userid.......

    My problem is I want to save the login userid into cookies throught the all pages , I can able to use that value in any page and I want to reset that cookie after logout....

    How can I do the coding for this requirement?
    Can someone please help me.....

    Thank you......

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: How to get the value of text field into another textfield which is there in diffe

    Can you not do any of your own research? Google is a great tool! Try searching.

    Advice: I hope you are using some server-side language to do the authentication/login to your site. That maximizes security.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Jan 2008
    Posts
    23

    Re: How to get the value of text field into another textfield which is there in different

    Hello PeejAvery,

    I can solve my problem. Till now I did the same thing.Any way thnks for your advice.Don't think so much......

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

Featured