Hello
I am sorry if my question is stupid but I can not get the value of input of a form
I created a CHUNK and I past a simple form with two input. I add teh CHUNK to my template named 'stage'.
<form class="form-inline" method="get" action="[[~[[*id]]]]">
<div class="form-group">
<label for="input_place">Rechercher un stage</label>
<input type="text" class="form-control" id="input_place" name="input_place" placeholder="Lieux">
</div>
<div class="form-group">
<label for="input_date">ou</label>
<input type="date" class="form-control datepicker" id="input_date" name="input_date" placeholder="sélectionnez une date">
</div>
<button type="submit" class="btn btn-default">Envoyer</button>
</form>
<hr>
I created a resource and I chosed the template 'stage'
Finaly, I created a SNIPPETS and I pasted PHP code. At the begining of my snipppet I psted the following code
foreach($_GET as $k => $r)
{
echo $k.'=>'.$r.'<br>';
}
When I send my form with some values ("toto" and "titi", the foreach of my snippet do not show me 'toto' and tit' but
cultureKey=>
q=>stages/stage.html
while it should display
inout_place=>toto
input_date=>titi
The is not a MODx class or something else, which let me get the form value?
How can I get the input value from a snippets?
Thank a lot
[ed. note: pierrot1010 last edited this post 9 years, 11 months ago.]