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 ?

2

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

2 Comments

yeah i know but it doesn't mean that you can not perform jquery tagging in simple form post
also you can define your post data variable values with the any attributes of any elements
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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.