Click here to Skip to main content
12,556,745 members (65,144 online)
Rate this:
Please Sign up or sign in to vote.
See more: HTML PHP Ajax jQuery
$('.testClick').click(function() {
   var val1 = ;
   var val2 = $('input[name="rad"]:checked').val();  
    /*$('input[name="for"],input[name="rad"]').change(function() {
        val1 = $('input[name="for"]:checked').val();
        val2 = $('input[name="rad"]:checked').val();*/
            url: 'ajax-example.php', //This is the current doc
            type: "POST",
            data: ({for: val1,rad:val2}),
            success: function(data){

here i am posting values to ajax-example.php and working fine but,now i want same values to another page also . is it possible through this function or any other method please can anyone help me

Thanks In advance
Posted 3-Aug-12 0:00am
Updated 3-Aug-12 0:29am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Do you mean you have several pages open at once ? Do you mean you want to pass these values down to a page ? You can store them in the session and pull them back out in another page, or pass them on a URL.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161026.1 | Last Updated 3 Aug 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100