Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    5
    Member #
    355
    I've been fighting to get the results from one form to be put into another form on a different page. Can anyone can help me out

  2.  

  3. #2
    Member
    Join Date
    Nov 2002
    Posts
    88
    Member #
    315
    cant be done surely

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Why not? With languages like PHP it's insanely easy.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Junior Member
    Join Date
    Dec 2002
    Posts
    5
    Member #
    355
    so can you help me out. I haven't used PHP, but I learn fast!!!

  6. #5
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Can you explain in detail what you're trying to do?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  7. #6
    Senior Member energizze's Avatar
    Join Date
    Oct 2002
    Posts
    260
    Member #
    238
    don't even need PHP.

    it's insanely easy with Javascript.



    but like filburt said a bit more info would be helpful.

  8. #7
    Junior Member
    Join Date
    Dec 2002
    Posts
    5
    Member #
    355
    sure!!!

    I'm creating a quick list for a book store, it's a frame that sits on the side of the page that the customer is viewing. when they find a product that they want to buy they can add the product code to that page.

    Then once they are finished their shopping then they click a submit button and that goes to a final page that totals their purchaces and add's in the tax. so all I need is to get the text fields form the first form to be transfered to the second form. If you need anything else. let me know.

    thanks for the help

  9. #8
    Senior Member energizze's Avatar
    Join Date
    Oct 2002
    Posts
    260
    Member #
    238
    page1.html :


    <html>
    <head>
    <title>page1</title>
    </head>
    <body>


    <form action='page2.html' method='get'>

    Type something: <input name='text1' type='text' value=''>
    <input type='submit' value='submit'>

    </form>

    </body>
    </html>



    page2.html :


    <html>
    <head>
    <title>page2</title>
    <script language='javascript'>


    var p1form = document.URL.indexOf('?');

    if (p1form != -1){

    var pairs = document.URL.substring(p1form+1, document.URL.length).split('&');

    for (var i=0; i<pairs.length; i++) {

    naval = pairs[i].split('=');

    document.write( naval[0] +"\="+ naval[1] );


    }

    }


    </script>
    </head>
    <body>

    </body>
    </html>




    hope that helps.

  10. #9
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    PHP/ASP/JSP/any other server-side language would be cleaner, though, because it has no browser dependencies unlike the rat's nest that is modern Javascript. But this works, too
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  11. #10
    Senior Member energizze's Avatar
    Join Date
    Oct 2002
    Posts
    260
    Member #
    238
    i agree, but if he doesn't have server-side lang support on his web space then JS and VBS are all he can use.


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:45 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com