<font size=2 face="sans-serif">Remove </font><font size=3> disabled="disabled"</font><font size=2 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 size=2 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 <gertvanoss@me.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Perl Dancer users mailing
list <dancer-users@dancer.pm>, </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">dancer-users-bounces@dancer.pm</font>
<br>
<hr noshade>
<br>
<br>
<br>
<br><font size=3>On 10 Feb 2014, at 14:48, Stefan Hornburg (Racke) <</font><a href=mailto:racke@linuxia.de><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="[% data.id %]" 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><tt><font size=2>_________________
_________________________
_____<br>
dancer-users mailing list<br>
dancer-users@dancer.pm<br>
</font></tt><a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users"><tt><font size=2>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>