Click here to Skip to main content
15,907,328 members

Comments by CLilium (Top 10 by date)

CLilium 13-Feb-15 8:23am View    
Sorry, I should have worded it better. I understand that you will have to use strings to call certain methods, but my point it whenever there is better way than using reflection.

I know there is switch/case approach, which I think is safer and a bit faster, but ugly and probably harder to extend. While reflection is a bit slower, elegant, but can cause exceptions if the input is wrong.
I'm just wondering which one is better or whenever there is new better approach to this.
CLilium 13-Feb-15 7:16am View    
Even though this answer is right concerning the question, shouldn't such approach be avoided? I believe there is definitely better way of doing this than using strings.
CLilium 13-Feb-15 3:38am View    
Deleted
Can you be more specific?
CLilium 9-Feb-15 4:10am View    
Wrong, read what is in first link Kenneth Haugland posted, you are using OR operator, if either of the conditions is true, then the result is true, so if your first conditions is true (not false as you mentioned) it doesn't need to check the other one, because it already knows the result.
If you need both conditions to be true to show the message you have to use AND operator, posted as 2nd link.
Other than that I don't know why you bind textbox1 and checkbox1 to that button1 event funtion, but if there is still something wrong just say it, don't know if you solved everything you needed.
CLilium 6-Jan-15 8:27am View    
Your echo "</table>"; is out of while statement, so you are making table within table within table. Also your <form> and </form> are in wrong order I think they should be both outside of <table></table> (they might be inside, but I'm not sure if it's correct way). Lastly please if you have some sense regarding web making, make all css in external file and actually use it instead of <center> for example.

If it doesn't help report back with following:
Did you check page source of the generated page for the value and did you check your data in your DB? If everything is fine, can you try to display the value just as a plain text to see whenever it's caused by <input>?