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.

Select Box mit PHP ansprechen ?

Empfohlene Antworten

Hi @all,

wie kann ich bei einer Select Box wenn wir mal meinen Beispiel nehem, den Ausgewälten wert abfragen ????


<select name="linux_system">

     <option>LINUX 31 Bit System</option>	

     <option>LINUX 64 Bit System</option>	

</select>

Engel

hi,

ich nehm an, dass du da ein formular absendest, oder?

und dann sieht dass in php so aus:


$wert_aus_select_box = $_POST["name_von_select_box"];
[/PHP]

$_POST wenn du method="post" hast

mfg korea1

du kannst nur während dem generations vorgang auf die box zugreifen! wenn die seite fertig ist bleibt dir nur noch javascript zum abfragen.

Ich nehme mal an du meinst, wenn man das Formular an eine andere seite

über post schickt!?

Gib jeder option ein eindeutiges Value oder den Inhalt, den du brauchst mit;

<select name='tst'>

<option value='1'>Test</option>

<option value='2'>Test2</option>

</select>

Wenn du jetzt Test2 ausgewählt hast bekommst du mit:

$value = $tst;

value = 2

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.