Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datasheet

Status
Not open for further replies.

striker73

MIS
Jun 7, 2001
376
US
Is there any way to set up a datasheet in PHP? By datasheet, I mean some sort of table-view of the data in a grid format that allows the user to edit information just like they were just looking at the table itself. Is there anything like this available in PHP?
 
no that i know of, though you could search or maybe for something.

its not that hard to code, requires some css to format the input boxes and some clever coding to maintain the data integrity per row. just use the value attribute of the input element and then the value is in the 'cell'



Bastien

cat, the other other white meat
 
a helpful trick for maintaining multiple text boxes is setting the name field to an array name, like so:

<input type=&quot;textbox&quot; name=&quot;cell[4][10]&quot; value=&quot;Text Data&quot;>

where the numbers for the array (in the brackets) are generated and written by your PHP script and describe the row and column numbers the data belongs to.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top