0

I am using https://github.com/aehlke/tag-it fot tagging

now i want to pass those value(tags) to my php page so that i could store in database so far

i am doing the simple $tags = $_POST["myTags"];

unfortunately i am getting error thar undefined myTags

here is my html code

                <tr>                        
                    <td>Tags</td>
                        <td><ul id="myTags"  class= "ulc" name = "myTags"></ul>
                    </td>
                </tr>   

please tell me what i am doing wrong ?

or my method is incorrect

or Tagit has another way to do this ?

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
user1614526
  • 474
  • 1
  • 4
  • 13

2 Answers2

1

the jquery is client side and php is server side, you most post the data to the php, use the jquery post function, learn here: http://api.jquery.com/jQuery.post

mohammad falahat
  • 757
  • 1
  • 4
  • 11
0

UL is not a "form input element". Use elements that require inputs from user such as INPUT,SELECT,TEXTAREA, etc. to submit values using traditional form submit.

timidboy
  • 1,702
  • 1
  • 16
  • 27