Welcome Guest, Not a member yet? Register   Sign In
upload image in a form
#2

[eluser]CroNiX[/eluser]
That should all be part of a single, multipart form with only 1 open and 1 close form tag, and a single submit just before the form_close().

Also, in one of your forms you are sending the POST data to 'redaktion/agenda/doUpload' and the other is being sent to the current URL, whatever that is. Don't know if it makes a difference for you.

Try:
Code:
echo form_open_multipart('redaktion/agenda/doUpload') . PHP_EOL;
echo form_fieldset() . PHP_EOL;
echo form_error('datum') ? '<div ' . $fehler . '>' . PHP_EOL : '<div>' . PHP_EOL;
echo form_label('Datum:*', 'datum') . PHP_EOL;
$data = array(
    'name'        => 'datum',
    'id'          => 'datepicker',
    'class'       => 'kurz',
);
echo form_input($data, set_value('datum', $datum)) . PHP_EOL;
echo '</div>';
echo form_label('Bild hochladen:', 'bild') . PHP_EOL;
echo form_fieldset_close() . PHP_EOL;
echo form_fieldset() . PHP_EOL;
echo form_button('abbrechen', 'zurück', 'onClick=self.location.href="' . $back_link . '"') PHP_EOL;
echo form_upload('userfile');
echo form_submit('submit', $submit_text, 'class="mittel"') . PHP_EOL;
echo form_fieldset_close() . PHP_EOL;
echo form_close() . PHP_EOL;?&gt;


Messages In This Thread
upload image in a form - by El Forum - 07-31-2012, 10:03 AM
upload image in a form - by El Forum - 07-31-2012, 12:34 PM
upload image in a form - by El Forum - 07-31-2012, 03:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB