使用PHP从javascript获取值

I have a problem working with javascript, so this is my javascript code for displaying data . My concern here is, I want to get the value of data to use in php. For instance, the value is Mark . Specially for querying mysql. Thank you.

$(".feedback").html('Value: ' + data);

You could use javascript to add the "data" into a hidden input value that belongs in a form.

<form action='test/add' method="post">
    <input type="hidden" value="add data value here with js"></input>
    </form>