www.webdeveloper.com
Results 1 to 3 of 3

Thread: javascript passing data to new page help

  1. #1
    Join Date
    Nov 2011
    Posts
    3

    javascript passing data to new page help

    Can anyone help me please on this problem I am having regarding my last post

    Thank you

    Ian

  2. #2
    Join Date
    Nov 2011
    Posts
    3
    Sorry thought my last post got posted

    The trouble I am having is I am using a JavaScript form for a delivery address and I want it so that when the customer fills out the form the data is passed to the next page so the data the customer puts in is displayed on the next page

    Can someone help me and let me know how to do this please

    Thank you

    Ian

  3. #3
    Join Date
    Nov 2011
    Posts
    17
    Use the jQuery and use this
    Code:
    $.post('url_to_your_file.php', { value1: $('#value1').val(), value2: $('#value2').val() }, function(data) {
       // What do do when it's posted
    }
    in the file it sends to, the data will be $_POST['value1'] or what ever you set, and the data it pulls from will have to have a ID set to the input called "value1" or what ever you change it to.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles