• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Post addtional data from Javascipt

 
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
Pie
Posts: 65229
95
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