kann mir jemand helfen ?

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

  • kann mir jemand helfen ?

    Ich bin noch nicht so weit mit PHP, leider.
    Kann mir jemand helfen das script zu vervollständigen.

    Ich möchte die Antwort: Schuhgrösse 32 DM 10.- / EUR 5.15
    aufteilen und in verschiedenen Tabellen mit dem Befehl PRINT ausgeben. Also eigentlich nur die Schuhgrösse 32 in einer Tabelle und den Betrag in einer anderen Tabelle.

    1) Wie kann ich das teilen ?
    2) Was und womit muss ich definieren ?

    Am besten ist ein Beispiel, wenn sich jemand die Mühe machen will.

    Danke.
    Emanuel

    <html>
    <head>
    <title>Untitled Document</title>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
    <body BGCOLOR="#FFFFFF" TEXT="#000000">

    <style TYPE=text/css>

    .text
    {font-size: 10px; color: #000000; font-family: verdana, arial, sans-serif }

    .bold
    {font-size: 10px; color: #000000; font-family: verdana, arial, sans-serif; font-weight: bold }

    </style>

    <table WIDTH="447" BORDER="0" CELLSPACING="0" CELLPADDING="2">
    <tr>
    <td WIDTH="248">
    <form NAME="rechnen" METHOD="post" ACTION="<?php echo $PHP_SELF?>">
    <select NAME="schuhpreis">
    <option SELECTED>Schuhgrösse wählen </option>
    <option VALUE=" Schuhgrösse 32 <BR> DM 10.- / EUR 5.15 ">
    Grösse 32</option>
    <option VALUE=" Schuhgrösse 40 <BR> DM 15.- / EUR 7.75 ">
    Grösse 40</option>
    </select>
    <br>
    <br>
    <input TYPE="submit" NAME="Abschicken" VALUE="Schuhpreis Rechnen">
    </form>
    </td>
    <td WIDTH="191" CLASS="bold">
    <?

    PRINT "<LEFT>";
    PRINT "
    $schuhpreis<BR>
    <BR>";PRINT "</LEFT>";

    ?>
    </td>
    </tr>
    </table>
    <br>
    <table WIDTH="447" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <tr>
    <td HEIGHT="54"> </td>
    </tr>
    </table>
    </body>
    </html>


  • #2
    Hallo,

    ich weiß es nicht passt meine Lösung zu dir oder nicht?
    Findest du die nicht sauber oder ..

    Folgendes:

    <select NAME="schuhpreis">
    <option SELECTED>Schuhgrösse wählen </option>
    <option VALUE="32" value1="DM 10.- / EUR 5.15 ">Grösse 32

    <input TYPE="button" NAME="Abschicken" onClick="Go(document.formular.select.options[document.formular.select.selectedIndex].value,document.formular.select.options[document.formular.select.selectedIndex].value1)">

    <script language="JavaScript">

    function Go(x,y)
    {
    if(!x)
    {
    document.formular.method="post";
    document.formular.variabl1.value=x;
    document.formular.variabl2.value=y;
    document.formular.action="$PHP_SELF";
    document.formular.submit();
    }
    }

    So ungefaer !

    Gruß

    Kommentar

    Lädt...
    X