Perhaps the problem lies in the assignment of $_POST['caption$i'] to $caption$i in your code. Use error_reporting(E_ALL); and see what shows onscreen, and maybe consider using $caption[$i] = $_POST['caption$i']; and $captiontext = $root->new_child('captiontext', '$caption[$i]'); instead.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
|