jQuery和用户城市

I have another question: when user selected dynamic tab its swapped image. How to save user made changes in SQL or maybe in XML file :)

How JapanPro wrote $.post('sendData.php', function(data) { $('.result').html(data); }); it can be solution. But someone can show example for sendData.php

Maybe:

<?php
    $packed = $_GET['data'];
    $data = split(",", $packed);
    for ($i = 0; ($i < count($data)); $i++) {
        .... 

I don't know, any solution?

Keep it simple

its simple just pass js data to php file, in php file read those data , update sqlquery and return true; receive true in js , update success using DOM

Watch similar tuts video

For the packed data the best solution is use any javascript json encoding library (for example, if you use jQuery, http://code.google.com/p/jquery-json/) and then decode it in the server side json_decode($data);