Results 1 to 7 of 7

Thread: Please help me convert this

  1. #1
    Senior Member Dj-marc's Avatar
    Join Date
    Apr 2006
    Location
    Kingston
    Posts
    166
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default 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?

    [Only registered and activated users can see links. Click Here To Register...] Currenltly changing over to xhtml

    [Only registered and activated users can see links. Click Here To Register...]

  2. #2
    Moderator riderz's Avatar
    Join Date
    Mar 2009
    Location
    EMalahleni, South Africa
    Posts
    1,349
    Thanks
    108
    Thanked 391 Times in 128 Posts
    Rep Power
    6

    Default

    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
    ________________
    Jacques
    [Only registered and activated users can see links. Click Here To Register...]
    [Only registered and activated users can see links. Click Here To Register...]
    [Only registered and activated users can see links. Click Here To Register...]
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

  3. #3
    Junior Member
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    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/>"

  4. #4
    Senior Member Dj-marc's Avatar
    Join Date
    Apr 2006
    Location
    Kingston
    Posts
    166
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    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>";

    [Only registered and activated users can see links. Click Here To Register...] Currenltly changing over to xhtml

    [Only registered and activated users can see links. Click Here To Register...]

  5. #5
    Super Moderator metulj's Avatar
    Join Date
    Jan 2007
    Location
    your root... now think fast... =]
    Posts
    1,708
    Thanks
    558
    Thanked 212 Times in 130 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by Dj-marc [Only registered and activated users can see links. Click Here To Register...]
    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ノ刀ノイリ!

  6. #6
    Senior Member Dj-marc's Avatar
    Join Date
    Apr 2006
    Location
    Kingston
    Posts
    166
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    ok bro im gonna try.

    [Only registered and activated users can see links. Click Here To Register...] Currenltly changing over to xhtml

    [Only registered and activated users can see links. Click Here To Register...]

  7. #7
    Senior Member kei_ki7's Avatar
    Join Date
    Jun 2009
    Location
    Philippines
    Posts
    435
    Thanks
    54
    Thanked 24 Times in 20 Posts
    Rep Power
    4

    Default

    if you want to convert that in html, why do you use anchor?
    Did I help you?
    You can help me too [Only registered and activated users can see links. Click Here To Register...]
    Your donations will help me finance my studies.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 31-03-10, 08:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19