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.

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich hoffe einer kann mir weiter helfen.

Zunächst einmal der Sachverhalt:

Im Anhang habe ich ein Scrennshot, der einmal das zu programmierbare Formular (linke Seite) zeigt und einmal die Ausgabe (rechte Seite), welche nach ausfüllen und absenden des Formulars erscheinen soll.

Bisher habe ich alles. Wo ich hänge ist die Tabelle. Diese soll durch die im Formular angegebene Anzahl für Spalten und Zeilen erstellt werden.

Mein bisheriges Script sieht so aus:

$e=0;

$x=0;

$i=0;

for ($_GET['spalten']; $_GET['spalten']>=$i; ++$i)

{

echo "<tr><td>[]</td></tr>";

for ($_GET['zeilen']; $_GET['zeilen']>=$e; ++$e)

{

echo "<tr><td>[]<br /></td></tr>";

}

}

Die Browseransicht so:

[][]

[]

[]

[]

[]

[][][][]

Die Anzahl der Spalten bekomm ich hin, aber dies mit der Anzahl der Zeilen zu kombinieren bekomm ich einfach nicht hin.

Danke schon mal für eure Hilfe.

LG

post-81898-14430449248855_thumb.png

Hallo zusammen,

for ($_GET['spalten']; $_GET['spalten']>=$i; ++$i)

{

echo "<tr><td>[]</td></tr>";

for ($_GET['zeilen']; $_GET['zeilen']>=$e; ++$e)

{

echo "<tr><td>[]<br /></td></tr>";

}

}

LG

Für mich sollte es sein

for ($_GET['zeilen']; $_GET['zeilen']>=$e; ++$e)

{

echo "<tr>";

for ($_GET['spalten']; $_GET['spalten']>=$i; ++$i)

{

echo "<td>[]</td>";

}

echo "</tr>";

}

also zeile durchlaufen dann spalten numerieren

lg.

  • Autor

Ich habs gelöst:-)

echo "<table border=\"1\" cellspacing=\"0\">";

for ($i=1;$i<=$_GET['zeilen'];$i++)

{

echo "<tr></tr>";

for ($k=1;$k<=$_GET['spalten'];$k++)

{

echo "<td><img src=\"toffifee.png\" style=\"border: 0px;\" /></td>";

}

echo "</tr>";

}

echo "</table>";

trotzdem danke:-)

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.