Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

multipart/form-data

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

habe folgendes Problem:

ich will in einer Maske sowohl die Dateiangabe für eine Datei, welche hochgeladen werden soll und zum anderen weitere Informationen zur Datei.

Code:

<form enctype="multipart/form-data" method="post" action="main.php?seite=contents&unter=neudetail">

<table align=center width=90% border=0>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr><td id=headline colspan="3" align=center width=100%><b>Neuanlage Content</b></td></tr>

<tr><td width=65%>File to Upload:</td><td><input type="file" name="probe" size="30"></td></tr>

<tr><td></td><td width=20%></td><td></td></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr><td>Name</td><td><input type="text" name="Name" /></td></tr>

<tr><td>Beschreibung</td><td><textarea name="Description" cols="40" rows="6"/></textarea></td></tr>

<tr><td>Laufzeit in sec.</td><td><input type="text" name="Duration" /></td></tr>

<tr><td>Aktiv</td>

<td><select name="Aktiv">

<option value=<? echo "1"?>><? echo "Ja"?></option>

<option value=<? echo "0"?>><? echo "Nein"?></option>

</select>

</td></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr><td align="right" width=50%><input type="reset" /></td>

<td><input type="submit" name="submit" value="Datei senden"></td></tr>

</table>

</form>

Jetzt mein Problem:

Zwar funktioniert der Dateiupload aber ich kann nicht auf die restlichen Parameter zugreifen.

Wie greife ich denn in nun auf die Parameter wie Name Description und so zu??

Habe erst mit $Name,... versucht, dann mit $_FILES['Name'] und dann mit $_FILES['Name']['name']

Aber bei allen Versuchen hab ich keine Werte erhalten.

Danke schonma

MfG

Big B

Hmmm....

also funktioniert jetzt doch, keine Ahnung warum eben nicht.

Sry für die Fehlmeldung :)

MfG

Big B

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.