Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 7:39 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Combine a table with a form
PostPosted: October 1st, 2009, 9:18 pm 

Posts: 22
Hi,

I would like to learn how to mix tables with a form, so you can edit the table data and changes would automatically be saved, how could I do it?


Top
 Profile  
 
  Re: Combine a table with a form
PostPosted: October 1st, 2009, 11:05 pm 

Posts: 16
if you want the changes to be permanent then you will need a ServerSide Language and a database. Then load the table with the editable field being form's inputs and a "save changes" option to upload and update the changes. For pure Html the changes will last as long as the user stays on that page. Maybe this code can illustrate a bit.
<body>
<table>
<form action="yourFile.php">
<tr>
<td><input value="editable"></td><td>non editable</td>
</tr>
<tr>
<td>non editable</td><td><input value="editable"></td>
</tr>
<tr>
<td>non editable</td><td><input value="editable"></td>
</tr>
</form>
</table>                     
<span onclick="document.forms[0].submit();">Save Changes</a>
</body>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron