This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Post addtional data from Javascipt  RSS feed

 
Joe Brigs
Ranch Hand
Posts: 70
IBM DB2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for the best way to do the following: I have a Data Entry Form that I'm validating thru Javascript. I want to Post a Value thats not part of the form depending on the results of an edit. ( i.e. if A == B post 3 else post 4 ) Is this as simple as defining a "Hidden" field on the form and setting it to the result of the if statement ? or is there a better way ? Thanks


As a side question, is there a good site or book that I could read about Forms specifically. I'm coding a pure Data Entry Application , thats writing data to a Database, And I'm finding some of the books I've read about HTML & Javascript dont talk about forms enough.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd use a hidden input.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!