php - submit a value from span field
i have a from with a submit button
after using jquery the page will have :
for(var i=0 ; i <10 ; i++){
'<span >'+ currentConcept[i] +'</span>\n\
with\n\
<span >'+ currentRelation[i] +'</span>\n\'
}
(that piece of code is just an example)
the variables currentConcept[] and currentRelation[] i got its values from database using Ajax
**i am using PHP**
and my question how to submit the page with these two variables ?
i mean in the server i hope something to be like this
$concepts = $_POST['currentConcept[]']
Answer
Solution:
Get these values in jQuery like this:
Now you can set these values into form text boxes:
OR if you are submit form via AJAX request:
Get these values on server side:
Answer
Solution:
Add an ID to your span element
Then use jquery to get the text out
Answer
Solution:
Something like that
And then you can send this var as a param in you request to server
Update
}