Quick Code Need

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

2 replies · 393 views · started 19 years ago · 1 min read

2 participants
WhiteWarrior Principal · 1,419 posts #1

i need the whole of this code converted into xhtml thanks if you can help me on this one External image (may be gone)

?> 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;username=$username&amp;password=$password&amp;room=$room&amp;message=$(message)&amp;action=write\">+ Submit</a> ";
wizard Senior · 493 posts #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>";

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