Hey just got a general question on the methodology behind something. lets say i add some small jquery code that changes the color and font weight of a p tag. <script> $(document).ready(function(){ $('#test').hover(function() { $(this).click(function(){$("p").css({color:"#993300", fontWeight:"bold"}); }) }); }); Code (markup): how would i pass these values onto PHP so that a new page can be generated with the new css styles would i have to send it via GET variables? so that PHP can pick it up. any small little examples would be good.
you can also use cookies and on the document ready can read the cookie and pre-apply this - keep the end user layer clientside imo.
well, you can store these data in a hidden html variable and php can read that variable viat $_POST. that means, while changing the style of p tag, you also need to store the details in an html variable.
another way is to use AJAX, in jQuery like this, $.ajax('/phpurl/', {color: '#ccc'}, function(){}); very easy. and the phpurl is a url to accept the request