Page 1 of 1
User Defined Tags - How to submit data back to it's self.
Posted: Wed Nov 22, 2006 3:57 am
by Bradleyenator
Ok this is a very simple question.
Is it possible to setup a UDT and then have a form or whatever which sends the data back to it's self for processing?
I do it all the time with normal php files however I wasn't sure how to reference a User Defined Tag in the form of a url.
If you can at all.
Thanks Heaps
Brad
Re: User Defined Tags - How to submit data back to it's self.
Posted: Thu Nov 23, 2006 2:31 am
by Dee
You can't directly call the UDT, but I think you can create a form that calls the same page (or another page that contains the UDT) . Then in the UDT you can use $_POST as you like.
Re: User Defined Tags - How to submit data back to it's self.
Posted: Fri Nov 24, 2006 6:22 am
by Bradleyenator
oh yeah of course.
It seems so obvious now.
Anyway thanks Dee.
Re: User Defined Tags - How to submit data back to it's self.
Posted: Mon Nov 27, 2006 11:35 pm
by Bradleyenator
Ok it does work but not if you are trying to generate pure xml.
The problem is even if you use a template with just {content} it till places and tags in the document and hence it mucks up the xml.
I know it is easier just to use an external php file but I guess you could say I am a bit of a perfectionist and I like things to be neat and tidy.
Anyway if anyone knows of a way to resubmit data back to a udt and not have the output mucked about by CMSMS that would be awesome!