Using admin forms I would like to add a facility which will allow a user to upload an image and link it to some data held within other tables. My database is set up and my form is set up as required, unfortunately I have been unsuccessful in working out how to pass the id value from the url to the field on my form
How do I pass the id value from the url to the field on my form?
I have this
protected function _prepareForm()
{
....Other code here....
$fieldset->addField('shop_id', 'hidden', array(
'value' => //unable to work out what command needs to be added,
'name' => 'shop_id',
));
}