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,

ich habe einen Miniscript:

if ($user=="mctimotheus" || $user=="voodoo")

{

}

wenn die Bedingung erfüllt ist dann soll er auf eine Seite im MainFrame springen, meinetwegen auf die index.html.

wie mach ich das, ich kenne nur die Standard Link Funktion: <a href="index.html" traget="MainFrame">LINK</a>.

Bitte um hilfe ;-))

Wenn du noch keine Ausgaben gemacht hast, geht auch

header("Location: index.htm");

und wie sieht das dann aus wenn ich das ganze noch im MainFrame öffnen will ?

MFG

MCT

Original geschrieben von MCTimotheus18

und wie sieht das dann aus wenn ich das ganze noch im MainFrame öffnen will ?

Das aufzurufende Skript wird ohne weitere Angaben doch sowieso im gleichen Frame geöffnet, in dem der Refresh oder header() steht.

Nein weil ich den Script im linken Frame stehen habe und die Seite aber im MainFrame aufgehen soll ;-))

warum machst dus nicht einfach schon beim erstellen des framesets die unterscheidung?

so:


if ($user == ".....") {

$framesrc= "./adminindex.htm"
} else {
$framesrc= "./index.htm"
}

<frameset .....>
<frame....>
<frame name="mainframe" src="$framesrc"....>
</frameset>
[/PHP]

ist nur ein ansatz.

musst du natürlich auf deine bedürfnisse anpassen.

Gruss

kills

Gib einfach bei zutreffen der Bedingung eine Javascript-Anweeisung aus.


<?
if($user...){
?>
<script language="JavaScript">
parent.MainFrame.location.href="Zielseite.htm";
</script>
<?
}
?>
[/PHP]

Und feddich.;)

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.