Please help me convert this

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Please help me convert this

    I was using a wml script and decided to convert it to html but here is were i really find it hard to get these codes working
    Code:
         echo "Reason: <input name=\"pres\" maxlength=\"150\"/><br/>";
        echo "Days: <input name=\"pds\" format=\"*N\" maxlength=\"4\"/><br/>";
        echo "Hours: <input name=\"phr\" format=\"*N\" maxlength=\"4\"/><br/>";
        echo "Minutes: <input name=\"pmn\" format=\"*N\" maxlength=\"2\"/><br/>";
        echo "Seconds: <input name=\"psc\" format=\"*N\" maxlength=\"2\"/><br/>";
        echo "<anchor>PUNISH $unick";
        echo "<go href=\"modproc.php?action=pun&amp;sid=$sid\" method=\"post\">";
        echo "<postfield name=\"who\" value=\"$who\"/>";
        echo "<postfield name=\"pid\" value=\"$(pid)\"/>";
        echo "<postfield name=\"pres\" value=\"$(pres)\"/>";
        echo "<postfield name=\"pds\" value=\"$(pds)\"/>";
        echo "<postfield name=\"phr\" value=\"$(phr)\"/>";
        echo "<postfield name=\"pmn\" value=\"$(pmn)\"/>";
        echo "<postfield name=\"psc\" value=\"$(psc)\"/>";
        echo "</go></anchor>";
        echo "</p>";
    could anyone convert it for me please?

    WapCHAT Forum Currenltly changing over to xhtml

    My Dowloads Site

    #2
    Code:
      echo "Reason: <input name=\"pres\" maxlength=\"150\"/><br/>";
        echo "Days: <input name=\"pds\" format=\"*N\" maxlength=\"4\"/><br/>";
        echo "Hours: <input name=\"phr\" format=\"*N\" maxlength=\"4\"/><br/>";
        echo "Minutes: <input name=\"pmn\" format=\"*N\" maxlength=\"2\"/><br/>";
        echo "Seconds: <input name=\"psc\" format=\"*N\" maxlength=\"2\"/><br/>";
         echo "<form method=\"post\" action=\"modproc.php?action=pun&amp;sid=$sid\">";
        echo "<postfield name=\"who\" value=\"$who\"/>";
        echo "<postfield name=\"pid\" value=\"$(pid)\"/>";
        echo "<postfield name=\"pres\" value=\"$(pres)\"/>";
        echo "<postfield name=\"pds\" value=\"$(pds)\"/>";
        echo "<postfield name=\"phr\" value=\"$(phr)\"/>";
        echo "<postfield name=\"pmn\" value=\"$(pmn)\"/>";
        echo "<postfield name=\"psc\" value=\"$(psc)\"/>";
     echo "<input type=\"submit\" name=\"Submit\" value=\"Create\"/><br/>";
      echo "</form>";
        echo "</p>";
    that should do it

    Comment


      #3
      For html code:
      PHP Code:
          $pen[0]="Trash";
          
      $pen[1]="Ban";
          
      $pen[2]="Ban Ip";
          echo 
      "<form action=\"modproc.php?action=pun&amp;sid=$sid\" method=\"post\">";
          echo 
      "Penalty: <select name=\"pid\">";
          for(
      $i=0;$i<count($pen);$i++)
          {
            echo 
      "<option value=\"$i\">$pen[$i]</option>";
          }
          echo 
      "</select><br/>";
           
          echo 
      "Reason: <input name=\"pres\" maxlength=\"100\"/><br/>";
          echo 
      "Days: <input name=\"pds\" format=\"*N\" maxlength=\"3\"/><br/>";
          echo 
      "Hours: <input name=\"phr\" format=\"*N\" maxlength=\"1\"/><br/>";
          echo 
      "Minutes: <input name=\"pmn\" format=\"*N\" maxlength=\"2\"/><br/>";
          echo 
      "Seconds: <input name=\"psc\" format=\"*N\" maxlength=\"2\"/><br/>";
          echo 
      "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
          echo 
      "<input type=\"submit\" value=\"punish\"/>";
                  echo 
      "</form><br/>"

      Comment


        #4
        how about this?

        Code:
            $pen[0]="Substract";
            $pen[1]="Add";
            
            echo "Action: <select name=\"pid\">";
            for($i=0;$i<count($pen);$i++)
            {
              echo "<option value=\"$i\">$pen[$i]</option>";
            }
            echo "</select><br/>";
            echo "Reason: <input name=\"pres\" maxlength=\"100\"/><br/>";
            echo "Plusses: <input name=\"pval\" format=\"*N\" maxlength=\"3\"/><br/>";
            echo "<anchor>Update";
            echo "<go href=\"modproc.php?action=pls&amp;sid=$sid\" method=\"post\">";
            echo "<postfield name=\"who\" value=\"$who\"/>";
            echo "<postfield name=\"pres\" value=\"$(pres)\"/>";
            echo "<postfield name=\"pval\" value=\"$(pval)\"/>";
            echo "<postfield name=\"pid\" value=\"$(pid)\"/>";
            echo "</go></anchor>";

        WapCHAT Forum Currenltly changing over to xhtml

        My Dowloads Site

        Comment


          #5
          Originally posted by Dj-marc View Post
          how about this?

          Code:
              $pen[0]="Substract";
              $pen[1]="Add";
              
              echo "Action: <select name=\"pid\">";
              for($i=0;$i<count($pen);$i++)
              {
                echo "<option value=\"$i\">$pen[$i]</option>";
              }
              echo "</select><br/>";
              echo "Reason: <input name=\"pres\" maxlength=\"100\"/><br/>";
              echo "Plusses: <input name=\"pval\" format=\"*N\" maxlength=\"3\"/><br/>";
              echo "<anchor>Update";
              echo "<go href=\"modproc.php?action=pls&amp;sid=$sid\" method=\"post\">";
              echo "<postfield name=\"who\" value=\"$who\"/>";
              echo "<postfield name=\"pres\" value=\"$(pres)\"/>";
              echo "<postfield name=\"pval\" value=\"$(pval)\"/>";
              echo "<postfield name=\"pid\" value=\"$(pid)\"/>";
              echo "</go></anchor>";
          why dont you try it your self??
          you got nice example above...
          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

          Comment


            #6
            ok bro im gonna try.

            WapCHAT Forum Currenltly changing over to xhtml

            My Dowloads Site

            Comment


              #7
              if you want to convert that in html, why do you use anchor?
              Did I help you?
              You can help me too
              Your donations will help me finance my studies.

              Comment

              Working...
              X