pass jQuery value to php
- by andrew
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