var attribute echoed with php and not submitted from form
<p>Using this </p>

<pre><code>`$(function(){$(".signaler").click(function(){var element=$(this);var I = element.attr("id");var page = $('#page').attr('value');var info = "id="+I+"&amp; page="+ page;$("#signaler"+I).hide();$("#load"+I).html('&lt;img class="think" src="load.gif" &gt;');$.ajax({type:"POST",url:"signaler.php",data:info,success:function(){$("#load"+I).empty();$("#ok"+I).fadeIn(200).show();}});return false;});});`
</code></pre>

<p>but have a form with hidden inputs only so i can echo current user info into it, was wondering if I could put it straight into jquery? Working fine though. </p>

<p>With a form you would use the following </p>

<p><code>var page=$('#page').attr('value');</code> </p>

<p>I would like to set the id with php echoing user name/id..</p>

<p>Something like <code>var id=$('&lt;?php echo $user/$id... ?&gt;');</code></p>

<p>If someone could point out the right jquery syntax, would be very greatful!</p>
