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.

Radiobuttons

Empfohlene Antworten

Veröffentlicht

Hey Leute,

meine Index Datei:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

    <head>

        <title>Eingabe</title>

    </head>

    <body>

        <form action="ausgabe.php" method="get">

            <table border="1" align="center">

                <tr><td>Geben sie eine Zahl ein:</td>

                    <td> 

                        <input type="text" name="zahl">

                </tr>

                <tr><td>In welchem Zahlensystem befindet sich die Zahl?

                    </td>

                    <td>

                        <input type="radio" name="Zahlsystem" value="Dualsystem"> Dualsystem<br>

                        <input type="radio" name="Zahlsystem" value="Dezimalsystem"> Dezimalsystem<br>

                        <input type="radio" name="Zahlsystem" value="Hexadezimalsystem"> Hexadezimalsystem

                    </td>

                </tr>

                <tr><td>

                        <input type="submit" value="Weiter zur Ausgabe">

                    </td></tr>

            </table>

        </form>

    </body>

</html>

Jetzt weiß ich nicht, wie ich in der Ausgabe die Radiobuttons auslese. Außerdem muss ich das Ergebniss per if überprüft werden. Könnt ihr mir vielleicht auf die Sprünge helfen?

Hallo,

meinst du das?

Inhalt Ausgabe.php


if(isset($_POST['Zahlsystem']))
{
echo $_POST['Zahlsystem'];
}
[/PHP]

Dazu noch in der index Seite action="POST" sonst halt mit $_GET

Gruß

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.