This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

year getting null?

 
venkatesh padmanabhan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this code, the year value is getting null.. why is it so? Am not able to insert the date, as the year value is getting null?
where should i change the year value, to get the user selected year??

[ March 31, 2006: Message edited by: Bear Bibeault ]
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no submit button ,no onchange on select box,When is your form submitted and how do u get null value?

-Praful
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh Okay got it now;
your code of inserting data should get executed only after page is submited put an if statement as follows


[ March 31, 2006: Message edited by: Praful Thakare ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic