Please help me convert this

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

6 replies · 466 views · started 17 years ago · 1 min read

5 participants
Dj-marc Developer · 164 posts #1

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

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

riderz Lead · 975 posts #2
  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&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 jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


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

gambit Newbie · 1 posts #3

For html code:

    $pen[0]="Trash";
    $pen[1]="Ban";
    $pen[2]="Ban Ip";
    echo "<form action=\"modproc.php?action=pun&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/>";
Dj-marc Developer · 164 posts #4

how about this?

    $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&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>";
metulj Super moderator Principal · 1,726 posts #5

Dj-marc wrote: how about this?

    $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&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ノ刀ノイリ!

kei_ki7 Senior · 431 posts #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.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close