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.

HTML Datei mit PHP öffnen inkl. werteübergabe

Empfohlene Antworten

Veröffentlicht

Ich habe ein Auswahlfeld das dynamisch per batch script generiert wird in eine HTML datei gespeichert (allerdings ohne HTML tags, nur die Slect und Option Tags).

Wenn ich dies nun in einer HTML/PHP datei öffnen will verwende ich das etwas primitive

passthru("cat test.html")

Das funktioniert auch, allerdings werden keine Werte aus der HTML Datei übergeben ich , z.B. Option Name="xxx" oder Selcet Value =XXX". Gibt es eine möglichkeit die HTML Datei so zu öffnen, dass die Werte übgeben werden?

  • Autor
Original geschrieben von phreak

meinst du sowas wie include()[1] oder require()[2]?

References:

[1] http://www.php.net/manual/en/function.include.php

[2] http://www.php.net/manual/en/function.require.php

So was in der Art. Hier die Situation:

###user.html####

<select name=users>

<option value=pc1>pc1</option>

<option value=pc2>pc2</option>

</select>

###user.php####

<FORM Action="user_delete.php">

<td><b>Benutzer löschen</b><td><td>

<?

passthru("cat user.html");

?>

<td><INPUT Type="submit" name="Loeschen" value="Loeschen">

</FORM>

Durch den Button wird dann das php-script user_delete.php ausgeführt

und die auswahl, also $users muss übergeben werden.

dann ist include() das was du suchst.

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.