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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Must values be in a text field to be written to dbase?

Status
Not open for further replies.

mikemedia

Programmer
Apr 28, 2006
39
US
My form data is saved to a database.

Within the form is a table.
A named table cell <td> contains a JS document.write of today's date which is to be the time stamp.

Unfortunately I now realize that the contents of even 'named' cells aren't written to the dbase.
So I'm making a readonly text field whose init value is the 'variable' of today's date and time.

I can't seem to get the InitVal of the field to be a variable though. Suggestions??? Is it even possible?

Something else on the same topic...

All the "<input type=text" values are written to and read from the dbase correctly.

My named 'textarea' values are indeed written to the database exactly like the Input fields, but those values are not read e.g. <% Response.Write objRS("Notes") %>
All the other input fields are. Why not this one?
 
It won't just happen automagically. Did you write any ASP code that populates a database field with the value of this particular HTML form field?

The ASP code has to match a particular name/value pair on the submitted HTML form to a particular field in the database.

Are you perhaps using some WYSIWYG software to help write the ASP?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top