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.

Frage zu cgi/html

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

in einem cgi-script verwende ich folgendes Statement

<td><INPUT TYPE="text" NAME="anlage_x" VALUE=$x SIZE="40"></td>

wenn $x einen wert hat , klappt es wie erwarted. Wenn $x allerdings leer oder undefiniert ist , steht im Eingabefled"SIZE =40". Woran liegt das ? Wäre nett wenn mich jemand aufklären könnte.

Gruß

hmm

Hallo hmm,

Wenn VALUE = NULL, dann steht letztendlich im ausgegebenen HTML:

<td><INPUT TYPE="text" NAME="anlage_x" VALUE=SIZE="40"></td>
Und das versteht der Browser leicht falsch und interprätiert es als
VALUE="SIZE=40"
, was Du auch zu Gesicht bekommst. Am besten kannst Du es verhindern, in dem Du auch um den VALUE brav deine Anführungszeichen setzt:
<td><INPUT TYPE="text" NAME="anlage_x" VALUE="$x" SIZE="40"></td>

tsg

und du solltest dir auch angewoehnen value="" zu schreiben, denn wenn du das so machst wie du oben, kann es noch zu viel "schoeneren" problemen kommen.

kannst ja ma versuchen deinen x "hallo welt" zu zuweisen ;)

Ted

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.