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.

PHP Skript funkioniert auf Windows aber nicht auf Linux ?

Empfohlene Antworten

Veröffentlicht

Hi @all

ich hab ein kleines Prob mit ein paar Skripten die ich auf dem Inet gezogen hab.

Wollte es gerade auf meiner Linux Maschine Testen, aber das Funkt nicht, wenn ich es aber auf meiner Windows maschine (auch mit Apache) teste dann funkt das.

Kann mir das mal jemand erklären ???


<html>

<head>

<title>Auswertung</title>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" type="text/css" href="../../css/neu.css">

</head>

<body>

<h1>Formularseite und Auswertung kombiniert</h1>


<form action="<?php echo $PHP_SELF; ?>" method="post">

Anrede <input type="radio" name="Anrede" value="m"> Herr

<input type="radio" name="Anrede" value="w"> Frau<br>

Ihr Name: <input type="text" name="Name">

<input type="submit" name="senden" value="Daten absenden">

</form>

<p>

<?php

if (isset($Anrede) && isset($Name) && $Name != "") {

if ($Anrede=="m") {

echo "Hallo Herr ";

}

else {

echo "Hallo Frau ";

}

echo "<b>$Name</b>, herzlich willkommen!\n";

}

else {

if (isset($senden)) {

echo "Bitte füllen Sie alle Felder aus!";

}

}

?>

</p>


</body>

</html>

kommt eine Fehlermeldung oder kommt eine weisse Seite ?

Wollte es gerade auf meiner Linux Maschine Testen, aber das Funkt nicht, wenn ich es aber auf meiner Windows maschine (auch mit Apache) teste dann funkt das.

Kann mir das mal jemand erklären ???

Ich tippe mal darauf, dass "register_globals" beim Linuxrechner "off" und beim Windows-Rechner "on" ist. Dementsprechend umstellen auf z.B.


if ($_POST['Anrede']=="m") { ...

hth

Reinhold

Stimmt hast recht, danke ;)

Engel

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.