pass jQuery value to php

Posted by andrew on Stack Overflow See other posts from Stack Overflow or by andrew
Published on 2010-12-29T11:22:30Z Indexed on 2010/12/29 11:54 UTC
Read the original article Hit count: 272

Filed under:

Hi, for example, i have got this value in my php file:

<script type="text/javascript">
function altcat(id) {
        $ogzu = id;
    }
</script>

i want to use $ogzu value in php. is it possible? can i pass a value to php from jquery? i need to learn this answer.

can anyone help me please? thanks and regards

edit:

thanks for your kindly replies. i wanted to use $ogzu value in php like that:

<?php
echo "<a href='".$ogzu."'>test link</a>";
?>

well, i know its wrong. its already not working. i want to learn if we are able to use jquery values in php? thanks again friends. regards

© Stack Overflow or respective owner

Related posts about jQuery