I have a HTML form contains span tags, and I want to submit the form with the span values using php. How can I do this?
Thanks..
I have a HTML form contains span tags, and I want to submit the form with the span values using php. How can I do this?
Thanks..
Spans are not form elements. Use a form element. If you don't want to use AJAX, that doesn't mean you can't use JS.
So, based on that, create some hidden form elements, and you can either echo the value in two places (one in your span, the other in the value attribute of the hidden field), or you can use JavaScript to pull the html out of the span and populate the form hidden element.
The PHP only method is the simplest and cleanest solution. Good luck!