I want to set the value from a URL parameter to a HTML form input text, like this:
<div class="input_container">
<div class="field_container">
<?php $clave = $_GET['pu'];?>
<input type="hidden" class="text" name="puntos_libres__id" id="puntos_libres_id" value="<?php echo $clave;?>" >
</div>
</div>
http://.../mispuntoslibres.php?pu=4
The form opens in a modal window, but the value for the input is not passed correctly to the action script. It always pass 0 as value. Any idea why?