<div dir="ltr"><div><div><div>Hey,<br><br></div>I also use hidden field for such a thing:<br><br><input type="hidden" value=[% p_id %] name="p_id"><br><br></div>Best regards,<br></div>Attila<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 3:00 PM, James Baer <span dir="ltr"><<a href="mailto:jamesfbaer@gmail.com" target="_blank">jamesfbaer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><input type="hidden" > is what you want.<br><br></div>You could also change your action and route to pass <font face="Menlo"><form method="post" action="/edit/[% <a href="http://data.id" target="_blank">data.id</a> %]"></font></div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 10, 2014 at 8:58 AM, Daniel Perrett <span dir="ltr"><<a href="mailto:dperrett@cambridge.org" target="_blank">dperrett@cambridge.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><font face="sans-serif">Remove </font><font size="3"> disabled="disabled"</font><font face="sans-serif">
and hide from the user with CSS. If it's disabled, I believe it won't be
submitted.</font>
<br>
<br><font face="sans-serif">Daniel</font>
<br>
<br>
<br>
<br><font size="1" color="#5f5f5f" face="sans-serif">From:
</font><font size="1" face="sans-serif">Gert van Oss <<a href="mailto:gertvanoss@me.com" target="_blank">gertvanoss@me.com</a>></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To:
</font><font size="1" face="sans-serif">Perl Dancer users mailing
list <<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a>>, </font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date:
</font><font size="1" face="sans-serif">10/02/2014 13:53</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject:
</font><font size="1" face="sans-serif">Re: [dancer-users]
updating a form</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Sent by:
</font><font size="1" face="sans-serif"><a href="mailto:dancer-users-bounces@dancer.pm" target="_blank">dancer-users-bounces@dancer.pm</a></font>
<br>
<hr noshade><div><div>
<br>
<br>
<br>
<br><font size="3">On 10 Feb 2014, at 14:48, Stefan Hornburg (Racke) <</font><a href="mailto:racke@linuxia.de" target="_blank"><font size="3" color="blue"><u>racke@linuxia.de</u></font></a><font size="3">>
wrote:</font>
<br>
<br><font size="3">On 02/10/2014 02:37 PM, Gert van Oss wrote:</font>
<br><font size="3">Hi, <br>
<br>
I’m trying to build a small app to comment on images. Probably I’m almost
there but currently stuck with updating a ‘file.yml' by a html-form. <br>
<br>
I’ve made two routes (shown below) “get ‘/:id/edit’ for showing the
form with the particular image to comment on. When hitting save the ‘post
‘/edit’ will be called. My problem is that the post route doesn’t have
the $id initialised. Is there someone around who can tell me how to solve
this or point to me what I’m doing wrong?<br>
</font>
<br><font size="3"><br>
Do you have a hidden from field in your form which passes the id to the
post route?<br>
<br>
Regards<br>
Racke</font>
<br>
<br><font size="3">I don’t have a hidden field. I tried but then still wasn’t
successful.</font>
<br><font size="3">(see below.. I skipped some fields)</font>
<br>
<br><font size="3"><form method="post" action="/edit"></font>
<br>
<br><font size="3"><input type="text" name="id" id="id"
value="[% <a href="http://data.id" target="_blank">data.id</a> %]" disabled="disabled"/>
</font>
<br>
<br><font size="3"><textarea name="description" rows="20"
cols="20" id="Description">[% data.description %]</textarea></font>
<br>
<br><font size="3"><input type="submit" name="submit"
value="Save" class="submit-button" /></font>
<br><font size="3"></form></font>
<br>
<br></div></div><tt><font>_________________
_________________________
_____<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
</font></tt><a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank"><tt><font>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</font></tt></a><tt><font><br>
</font></tt>
<br><br></div></div>_______________________________________________<div class=""><br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>