Click here to Skip to main content
11,478,619 members (57,772 online)
Rate this: bad
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 1:00am
Edited 3-Aug-12 1: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
0 Sergey Alexandrovich Kryukov 205
1 F-ES Sitecore 170
2 Frankie-C 120
3 OriginalGriff 105
4 DamithSL 95
0 Sergey Alexandrovich Kryukov 7,865
1 OriginalGriff 7,341
2 Sascha Lefèvre 3,059
3 Maciej Los 2,491
4 Richard Deeming 2,335

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 3 Aug 2012
Copyright © CodeProject, 1999-2015
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