Ankündigung

Einklappen
Keine Ankündigung bisher.

Verlinkung bei iExplorer funktioniert nicht

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Verlinkung bei iExplorer funktioniert nicht

    Hallo Zusammen!

    ich versuche folgendes:
    PHP-Code:
    if(isset($_POST['a']))
       echo 
    "<meta http-equiv ='refresh' content='0,URL=test.php'>";

    <
    td align="right"><input type="submit" name="a"  value="A" > </td
    Funktioniert wunderbar in Safari, Opera und Firefox. Nur im iExplorer nicht!
    Kann mir da jemand weiterhelfen. Es wäre wichtig, dass ich das am iExplorer zum Laufen bringe. Wär mir egal, wenns bei den oben genannten Browsern nicht gehen würde.

    lg georg

  • #2
    vielleicht postest Du mal einen code der zumindest parse error frei ist

    Kommentar


    • #3
      Halte dich an valides HTML. Dieses Tag gehört in den Header, nicht irgendwo mitten in die Seite.
      [url]www.php-maven.org[/url] PHP und Maven vereint: Build/Deploy/Produktion/Konfiguration, Projekt Management, CI, PHPUnit, zahlreiche Frameworks
      Twitter @ [url]https://twitter.com/#!/mepeisen[/url] und Facebook @ [url]http://t.co/DZnKSUih[/url]

      Kommentar


      • #4
        Hier der komplette Code!
        PHP-Code:
        <?php

        session_start
        ();
            
        $_SESSION['datum_von'] =     $_POST['datum_von'];
            
        $_SESSION['datum_bis'] =     $_POST['datum_bis'];
            
        $_SESSION['kw'] =             $_POST['kw'];
            
        $_SESSION['jahr'] =         $_POST['jahr'];

        $_POST get_magic_quotes_gpc() ? array_map'stripslashes'$_POST ) : $_POST;

        if (isset( 
        $_POST['yield'] ))
        {
            echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.1.php'>";    

            
            
        }
        if (isset( 
        $_POST['pe_cam'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.2.php'>";    
        }
        if (isset( 
        $_POST['support_cam'] ))
        {
            echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.3.php'>";          
        }
        if (isset( 
        $_POST['support_pe'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.4.php'>";    
        }
        if (isset( 
        $_POST['yield_w'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.5.php'>";    
        }

        if (isset( 
        $_POST['cam_job_ma'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.7.php'>";    
        }
        if (isset( 
        $_POST['pe_job_e'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.8.php'>";    
        }
        if (isset( 
        $_POST['find_date'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.10.php'>";    
        }
        if (isset( 
        $_POST['pe_job_ma'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.6.php'>";    
        }
        if (isset( 
        $_POST['zeit_ma'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.11.php'>";    
        }
        if (isset( 
        $_POST['imbach'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.12.php'>";    
        }

        if (isset( 
        $_POST['imbach_ma'] ))
        {
              echo 
        "<meta http-equiv='refresh' content='0, URL=7.1.13.php'>";    
        }
        ?>

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                <title>Formular-Elemente</title>
                
                
                <style type="text/css">
                    .Bereich, .Feld { background-color:#3300CC; width:100px; length:100px; border:6px solid #ddd; }        
                </style>
                <link rel="stylesheet" type="text/css" href="style.css">
                <link type="text/css" rel="stylesheet" href="dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20051112" media="screen"></LINK>
                <SCRIPT type="text/javascript" src="dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?random=20060118"></script>
            </head>
        <body>
            <table id="header">
                <th>Statistische Auswertung</th>
            </table>
            <table id="subheader">
                <th>NEU ab 01.03.2010</th>
        </table>
            <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="f_cam_support" id="f_cam_support">
                <table> 
                <tr>
                    <table border ="0" width="600">    
                        <tr>
                            <td></td>
                            <td align="right">
                                <table border ="0" width="300" align="right">
                                    <tr align="right">
                                    <td align ="right"><input type="button" value="von" onclick="displayCalendar(document.forms[0].datum_von,'yyyy-mm-dd',this)"><br><input type="text" name="datum_von" id="datum_von" size="10" ></input></nobr></td>
                                    <td> <input type="button" value="bis" onclick="displayCalendar(document.forms[0].datum_bis,'yyyy-mm-dd',this)"><br><input type="text" name="datum_bis" id="datum_bis" size="10" ></input> </td>
                                    <td align="right"> KW <br><input type="text" name="kw" id="kw" size ="2"></input></br></td>
                                    <td align="right">Jahr <br><input type="text" name="jahr" id="jahr" size="4"></input> </td>
                                </tr>
                        </tr>
                    </table>
                                
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                <table border="0" align="right"    >
                                    <tr>
                                        <td align="right"><input type="submit" name="yield"  value="Yield CAM" > </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="pe_cam"  value="PE/CAM Auftr&auml;ge"></input> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="support_cam" value="Dateneingang & Support CAM" onclick="location.href ='7.1.3.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="support_pe" value="Kalkulation & Support PE" onclick="location.href ='7.1.4.php'"> </td>
                                    </tr>
                                </table>
                            </td>
                            <td align="right" valign="top">    
                                <table border="0">
                                    <tr>
                                        <td align="right"><input type="submit" name="yield_w" id="yield_w" value="Yield CAM pro Woche" onclick="location.href ='7.1.5.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="cam_job_ma" id="cam_job_ma" value="CAM-Job pro MA" onclick="location.href ='7.1.7.php'" > </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="pe_job_ma" id="pe_job_ma" value="PE-Job pro MA" onclick="location.href ='7.1.6.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="pe_job_e" id="pe_job_e" value="PE-Jobs-Engenix" onclick="location.href ='7.1.8.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="find_date" id="find_date" value="Auftr&auml;ge mit fehlendem CAM/PE Datum" onclick="location.href ='7.1.10.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="zeit_ma" id="zeit_ma" value="Ben&ouml;tigte Zeit pro MA" onclick="location.href ='7.1.11.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="imbach" id="imbach" value="IMBACH" onclick="location.href ='7.1.12.php'"> </td>
                                    </tr>
                                    <tr>
                                        <td align="right"><input type="submit" name="imbach_ma" id="imbach_ma" value="IMBACH-Job pro MA" onclick="location.href ='7.1.12.php'"> </td>
                                    </tr>
                                    
                                </table>
                            </td>
                        </tr>
                    </table>
                </table>
              </body>
          </form>
        </html>
        die onclick JS sachen bitte ignorieren

        Hoffe ihr könnt mir jetzt weiterhelfen.

        Kommentar


        • #5
          Zitat von mepeisen Beitrag anzeigen
          Halte dich an valides HTML. Dieses Tag gehört in den Header, nicht irgendwo mitten in die Seite.
          QFT!

          Jetzt grad packst du es noch VOR den Doctype...

          Es gehört, wie mepeisen sagte, ZWISCHEN <head> und </head>
          Über 90% aller Gewaltverbrechen passieren innerhalb von 24 Stunden nach dem Konsum von Brot.

          Kommentar


          • #6
            So wie ich das verstanden habe müssen meine $_POST-Abfragen im Header stehen.

            PHP-Code:
            <?php 

            session_start
            (); 
                
            $_SESSION['datum_von'] =     $_POST['datum_von']; 
                
            $_SESSION['datum_bis'] =     $_POST['datum_bis']; 
                
            $_SESSION['kw'] =             $_POST['kw']; 
                
            $_SESSION['jahr'] =         $_POST['jahr']; 

            ?>

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> 
                <head> 

            <?php 

            $_POST 
            get_magic_quotes_gpc() ? array_map'stripslashes'$_POST ) : $_POST

            if (isset( 
            $_POST['yield'] )) 

                echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.1.php'>";     

                 
                 

            if (isset( 
            $_POST['pe_cam'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.2.php'>";     

            if (isset( 
            $_POST['support_cam'] )) 

                echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.3.php'>";           

            if (isset( 
            $_POST['support_pe'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.4.php'>";     

            if (isset( 
            $_POST['yield_w'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.5.php'>";     


            if (isset( 
            $_POST['cam_job_ma'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.7.php'>";     

            if (isset( 
            $_POST['pe_job_e'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.8.php'>";     

            if (isset( 
            $_POST['find_date'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.10.php'>";     

            if (isset( 
            $_POST['pe_job_ma'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.6.php'>";     

            if (isset( 
            $_POST['zeit_ma'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.11.php'>";     

            if (isset( 
            $_POST['imbach'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.12.php'>";     


            if (isset( 
            $_POST['imbach_ma'] )) 

                  echo 
            "<meta http-equiv='refresh' content='0, URL=7.1.13.php'>";     

            ?> 
                    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
                    <title>Formular-Elemente</title> 
                     
                     
                    <style type="text/css"> 
                        .Bereich, .Feld { background-color:#3300CC; width:100px; length:100px; border:6px solid #ddd; }         
                    </style> 
                    <link rel="stylesheet" type="text/css" href="style.css"> 
                    <link type="text/css" rel="stylesheet" href="dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20051112" media="screen"></LINK> 
                    <SCRIPT type="text/javascript" src="dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?random=20060118"></script> 
                </head> 
            <body> 
                <table id="header"> 
                    <th>Statistische Auswertung</th> 
                </table> 
                <table id="subheader"> 
                    <th>NEU ab 01.03.2010</th> 
            </table> 
                <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="f_cam_support" id="f_cam_support"> 
                    <table>  
                    <tr> 
                        <table border ="0" width="600">     
                            <tr> 
                                <td></td> 
                                <td align="right"> 
                                    <table border ="0" width="300" align="right"> 
                                        <tr align="right"> 
                                        <td align ="right"><input type="button" value="von" onclick="displayCalendar(document.forms[0].datum_von,'yyyy-mm-dd',this)"><br><input type="text" name="datum_von" id="datum_von" size="10" ></input></nobr></td> 
                                        <td> <input type="button" value="bis" onclick="displayCalendar(document.forms[0].datum_bis,'yyyy-mm-dd',this)"><br><input type="text" name="datum_bis" id="datum_bis" size="10" ></input> </td> 
                                        <td align="right"> KW <br><input type="text" name="kw" id="kw" size ="2"></input></br></td> 
                                        <td align="right">Jahr <br><input type="text" name="jahr" id="jahr" size="4"></input> </td> 
                                    </tr> 
                            </tr> 
                        </table> 
                                     
                                </td> 
                            </tr> 
                            <tr> 
                                <td align="right" valign="top"> 
                                    <table border="0" align="right"    > 
                                        <tr> 
                                            <td align="right"><input type="submit" name="yield"  value="Yield CAM" > </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="pe_cam"  value="PE/CAM Auftr&auml;ge"></input> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="support_cam" value="Dateneingang & Support CAM" onclick="location.href ='7.1.3.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="support_pe" value="Kalkulation & Support PE" onclick="location.href ='7.1.4.php'"> </td> 
                                        </tr> 
                                    </table> 
                                </td> 
                                <td align="right" valign="top">     
                                    <table border="0"> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="yield_w" id="yield_w" value="Yield CAM pro Woche" onclick="location.href ='7.1.5.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="cam_job_ma" id="cam_job_ma" value="CAM-Job pro MA" onclick="location.href ='7.1.7.php'" > </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="pe_job_ma" id="pe_job_ma" value="PE-Job pro MA" onclick="location.href ='7.1.6.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="pe_job_e" id="pe_job_e" value="PE-Jobs-Engenix" onclick="location.href ='7.1.8.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="find_date" id="find_date" value="Auftr&auml;ge mit fehlendem CAM/PE Datum" onclick="location.href ='7.1.10.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="zeit_ma" id="zeit_ma" value="Ben&ouml;tigte Zeit pro MA" onclick="location.href ='7.1.11.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="imbach" id="imbach" value="IMBACH" onclick="location.href ='7.1.12.php'"> </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="right"><input type="submit" name="imbach_ma" id="imbach_ma" value="IMBACH-Job pro MA" onclick="location.href ='7.1.12.php'"> </td> 
                                        </tr> 
                                         
                                    </table> 
                                </td> 
                            </tr> 
                        </table> 
                    </table> 
                  </body> 
              </form> 
            </html>
            Ändert aber leider nichts an der Tatsache, das es im iExplorer nicht geht!

            Kommentar


            • #7
              Du könntest einmal probieren, einen absoluten Pfad für die URL anzugeben,
              oder - weil Du eh' auf JavaScript angewiesen bist - alternativ mit
              Code:
              document.location.href = {deine_url}
              Competence-Center -> Enjoy the Informatrix
              PHProcks!Einsteiger freundliche TutorialsPreComposed Packages

              Kommentar


              • #8
                Hm.. hilft das?
                Code:
                <meta http-equiv='refresh' content='0; URL=7.1.13.php'>
                                                   ^^^^
                                                   Semikolon statt Komma
                Du hast überall Kommas stehen, Semikolon wäre aber richtig.
                Über 90% aller Gewaltverbrechen passieren innerhalb von 24 Stunden nach dem Konsum von Brot.

                Kommentar


                • #9
                  Ich müssen ja nicht zwingend buttons sein. es könnten ja "normale" links(href) sein.
                  Ich schaffe bei "normalen" links jedoch nicht die Werte aus den Datumboxen mit in das darunterliegende formular zu übernehmen.

                  Kommentar


                  • #10
                    Zitat von lstegelitz Beitrag anzeigen
                    Hm.. hilft das?
                    Code:
                    <meta http-equiv='refresh' content='0; URL=7.1.13.php'>
                                                       ^^^^
                                                       Semikolon statt Komma
                    Du hast überall Kommas stehen, Semikolon wäre aber richtig.
                    Vielen vielen Dank. Das war das Problem.

                    liebe Grüße, Georg

                    Kommentar


                    • #11
                      Warum nutzt du den submit-Buttons mit OnClick Event zu einer neuen URL? Das macht ja mal gaaanz wenig Sinn!

                      Außerdem: Da du eh nach 0 Sekunden mit "meta" umleiten willst, solltest du mal drüber nachdenken, ob header('Location: '); nicht eine bessere Wahl ist, weil viele Benutzer diese Umleitung heute deaktiviert haben...
                      Damit kannst du dann auch vor dem Darstellen der Seite den Header versenden und musst das ganze nicht iwo in das Dokument basteln!

                      Kommentar

                      Lädt...
                      X