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.

Werte mit Add übergeben

Empfohlene Antworten

Veröffentlicht

Morgen,

ich hab ein Problem, ich würde gerne einen Wert von einer Php seite zu einer anderen übergeben .

Bei so nem HTML Code ist das kein problem:

<input type="text" name="a1" size="1">

aber wie mach ich das mit Konstanten wie z.B.

$Artikel1 = Stift;

Wie mach ich das das die 2te Php seite auch weiss das $Artikel1 ein Stift ist ?!

Danke schon mal,

und schöne Feiertage

Cu McMaiers

1. Du übergibst den wert per GET und hängst ihn die URL an:

<form action="ziel.php?variable=$wert" method="POST">
2. Du übergibst die Variable mit in deinem Formular:
<input type="hidden" name="variable" value="$wert" />

3. Du speicherst die Variable in der Session und hast sie auf allen folgenden Seiten zur Verfügung:


// Skript 1
session_register("variable");
$variable = $wert;


// Skript x
$variable = $_SESSION["variable"];
[/PHP]

Cool danke !

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.