Welcome Guest, Not a member yet? Register   Sign In
how can i get the particular post id in foreach loop
#8

(06-22-2015, 07:13 AM)Wouter60 Wrote: I think I found the problem.
Your view builds up a series of forms (within a foreach {  }  loop).
All forms have the same name: post_comment.
In your javascript function do_something(), you submit the form with the name post_comment. Since all forms have that name, only the first one is posted.

Now my question is: when the user hits the Enter key, do you want all comment-forms to be posted, or just the one where the user has filled-in some text and hit Enter?

When ever user write comment in  particular post  .. that post-id , and that post  comment will be inserted  in to data base show in db...
Thanks for problem finding ....

Attached Files Thumbnail(s)
   
Manikanta
Reply


Messages In This Thread
RE: how can i get the particular post id in foreach loop - by Chandini - 06-23-2015, 10:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB