echo array and integrate two forms
| From: | Andrea Caldwell | Date: | Fri, 01 Mar 2002 18:20:12 +0000 |
| Subject: | echo array and integrate two forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86816@lists.php.net to get a copy of this message | ||
Hope this doesn't sound too lame from the newbie. I have a form, code shown
here that has input fields for each row. I'd like to do two things:
1.) Change the REALNAME field to just echo the row & not have an input field
(I've tried to do this & it just echoes my code back to me).
2.) Integrate a second form here that uses the same $result, but points to
another page to 'modify entry' instead of 'remove entry'. How could I
implement this?
Thanks for any help in advance, it is MUCH appreciated!!
______________________________________________________________
while ($row = mysql_fetch_assoc($result)) {
echo('
<table border=1 cellpadding=5>
<form name="remove" method="post" action="remove_entry.php">
<tr>
<td> NAME
</td>
<td><input type="text" size="25" name="phone"
value="'.$row["realname"].'"></td>
<tr>
<td>OFFICE PHONE
</td>
<td>
<input type="text" size="25" name="phone"
value="'.$row["phone"].'">
</td>
</tr>
<tr>
<td>
<input type="submit" name="remove" value="Remove
Entry"></td>
</tr>
</form>
</table>');
}
?>