<script language=javascript>
function check() {
if (document.leiste.change == "")
{
parent.haupt.location.href="main.php?style=<?php echo"$style"; ?>";
}
else
{
var drin = document.leiste.change;
var check = drin.split("");
if (check[1] == "w" AND check[2] == "w" AND check[3] == "w")
{
parent.haupt.location.href="main.php?goto="+ drin +"&style=<?php echo"$style"; ?>";
}
}
</script><form name=leiste action="" onsubmit="check();"><input type=text name=change size=15 style="position:absolute;top:88px;left:79px;font-size:14px;width:350px;height:22px;padding-top:3px;border:0;" value=Arbeitsplatz><input type=image src=../style/images<?php echo"$style"; ?>/wechsel.jpg style="position:absolute;top:86px;left:491px;"></form>
<script language=javascript>
function check() {
if (document.leiste.change.value == "")
{
parent.haupt.location.href="main.php?style=<?php echo"$style"; ?>";
}
else
{
var drin = document.leiste.change.value;
var check = drin.split("");
if (check[0] == "w" && check[1] == "w" && check[2] == "w")
{
parent.haupt.location.href="main.php?goto="+ drin +"&style=<?php echo"$style"; ?>";
}
}
}
</script>
.value dranhängen. (Beispiel: Nicht document.leiste.change sondern document.leiste.change.value)check[1] usw. war ich mir nicht sicher. Aber Du willst hier sicher überprüfen, ob die ersten drei Buchstaben von document.leiste.change.value w, w und w sind, richtig? Arrays, solche wie sie split zurückgibt, fangen bei 0 an. Dementsprechend hab ich die if-Abfrage auch abgeändert. <form name="leiste" action="HIER_DATEI_ANGEBEN_DIE_DAS_FORM_VERARBEITET" onsubmit="check()" method="post">
<input type="text" name="change" size="15" value="Arbeitsplatz">
<input type="image" src="../style/images<?php echo "$style"; ?>/wechsel.jpg">
</form>$_GET['style'] oder, wenn die Variable per POST-Methode übergeben wird, $_POST['style'] verwenden. <script language=javascript>ist nicht valide, ersetze dies durch <script type="text/javascript"> if (check[0] == "w" && check[1] == "w" && check[2] == "w")das Script bricht an dieser Stelle ab, wenn weniger als 3 Zeichen eingegeben wurden.<?php
$style = $_GET[style];
print ("<html><head><title>B-Side</title><link rel=stylesheet type=text/css href=../style/images$style/main.css><script language=javascript src=../data/popup.js></script><script language=javascript src=../data/bild.js></script>");
print ("</head><body>");
?>
<script language=javascript>
function check() {
if (document.leiste.change.value == "")
{
parent.haupt.location.href="main.php?style=<?php echo"$style"; ?>";
}
else
{
var drin = document.leiste.change.value;
var check = drin.split("");
if (check[0] == "w" && check[1] == "w" && check[2] == "w")
{
parent.haupt.location.href="main.php?goto="+ drin +"&style=<?php echo"$style"; ?>";
}
}
}
</script>
<body>
<img src=../style/images<?php echo"$style"; ?>/iconarbeitsplatz.jpg style="position:absolute;top:87px;left:59px;"><form name="leiste" action="main.php" method="post" onsubmit="check();"><input type=text name=change size=15 style="position:absolute;top:88px;left:79px;font-size:14px;width:350px;height:22px;padding-top:3px;border:0;" value=Arbeitsplatz><input type=image src=../style/images<?php echo"$style"; ?>/wechsel.jpg style="position:absolute;top:86px;left:491px;"></form>
</body></html>
language=javascript mit type="text/javascript" ersetzen.if (drin.toUpperCase().indexOf("WWW") >-1) {
parent.haupt.location.href= ...
}about:config eingibst und dann die Zeile mit javascript.options.strict suchst ändere dort den Wert von false auf true.
{
var drin = document.leiste.change.value;
var check = drin.split("");
if (check[0] == "w" && check[1] == "w" && check[2] == "w")
{
parent.haupt.location.href="main.php?goto="+ drin +"&style=<?php echo"$style"; ?>";
}
}
{
var drin = document.leiste.change.value;
if (drin.indexOf('www') == 0)
{
parent.haupt.location.href="main.php?goto="+ drin +"&style=<?php echo"$style"; ?>";
}
}
<?php
$querystring='';
$querystring_num=count($_GET);
$querystring_i=0;
if($querystring_num != 0) {
foreach($_GET as $key => $value) {
$querystring.=($querystring_i!=0) ? '&'.$key.'='.$value : '?'.$key.'='.$value;
$querystring_i++;
}
}
?><frame src="name_der_datei.php<?php echo $querystring; ?>">
iceweasel / firefox: java installation
Sichtbarer 12.06.2007 - 220 Hits - 5 Antworten
Brauche dringend Hilfe! Formular
Experte 25.06.2007 - 77 Hits - 3 Antworten
Javascript-Weiterleitung
gosch 05.07.2007 - 81 Hits - 1 Antwort
*.java, wie aufrufen?
Marilana 17.01.2008 - 156 Hits - 2 Antworten
PHP-Weiterleitung ohne Referrer-Übergabe
Nadine80 13.08.2008 - 133 Hits - 3 Antworten