Quick Code Need

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

    Quick Code Need

    i need the whole of this code converted into xhtml thanks if you can help me on this one

    ?>
    Message:

    <input name="message" maxlength="170" />


    To:


    <?php

    echo "<select name=\"towhere\">";
    echo "<option value=\"$room\">Room</option>";

    $sql = "SELECT * FROM chatusers order by username asc";
    $result = mysql_query($sql);
    $number_of_rows = mysql_num_rows($result);
    $start = $number_of_rows - $number_of_rows;
    while ($start < $number_of_rows ){
    $name=(mysql_result($result,$start,"username"));

    echo "<option value=\"$name\">$name</option>";

    $start = $start +1;
    }

    echo "</select>";

    echo "
    <a title=\"Enter\" href=\"chatroom.php?towhere=$(towhere)&amp;usernam e=$username&amp;password=$password&amp;room=$room& amp;message=$(message)&amp;action=write\">+ Submit</a>
    ";

    #2
    <form action="chatroom.php" method="get">

    Message:

    <input name="message" maxlength="170" />


    To:


    <?php

    echo "<select name=\"towhere\">";
    echo "<option value=\"$room\">Room</option>";

    $sql = "SELECT * FROM chatusers order by username asc";
    $result = mysql_query($sql);
    $number_of_rows = mysql_num_rows($result);
    $start = $number_of_rows - $number_of_rows;
    while ($start < $number_of_rows ){
    $name=(mysql_result($result,$start,"username"));

    echo "<option value=\"$name\">$name</option>";

    $start = $start +1;
    }

    echo "<input type=\"hidden\" name=\"usernane\" value=\"$username\"/>";
    echo "<input type=\"hidden\" name=\"password\" value=\"$password\"/>";
    echo "<input type=\"hidden\" name=\"room\" value=\"$room\"/>";
    echo "<input type=\"hidden\" name=\"action\" value=\"write\"/>";
    echo "<input type=\"submit\" value=\"GO\"/>";
    echo "<form>";

    Comment


      #3
      thank you

      Comment

      Working...
      X