Originally posted by idorjee
change content of the table
Collapse
X
-
hi dlite922,
thanks for your reply. i tried that already and doesn't work. here is what i'm actually doing:
the script gets the $desc (string) from somewhere, and
the next thing that i'm trying to do is to submit the $desc variable, AFTER making some changes to it, to another script that would insert it into the database:Code:echo "<TR bgcolor=\"#660000\"><TD COLSPAN=2><input type=\"text\" name=\"desc\" value=\"$desc\" /></TD></TR>";
Thank you!Code:echo "<form name=\"go\" method=\"post\" action=\"ezadd.php\">"; echo "<input type=\"hidden\" name=\"desc\" value=\"$desc\">"; echo "<input type=\"submit\" name=\"submit\" value=\"Add to DB\">";
Leave a comment:
-
why don't you put the contents of the <td> into a text field
[PHP]
<td><input type="text" name="nameGoesH ere" value="Value Here" /></td>
[/PHP]
You don't like the looks of it you say? want it to look like regular text?
You can completely change the look of an input tag with css.
background color, no border would do the trick for you.
" Google input html css "Leave a comment:
-
change content of the table
hi,
is there any way i could click on the html table content (<td>) and edit the info, and then click a button to update the modification into a database?
i found the following function off the internet, and it really doesn't do the thing that mentioned above, but just replaces the content with the specified "WORD".
please help. thanks a lot in advance.Code:function changeContent(){ var x=document.getElementById('myTable').rows var y=x[0].cells y[0].innerHTML="NEW CONTENT" }Tags: None
Leave a comment: