as we know that cck make form.
i want to do the following when the user press submit in CCK it exec a Perl script, so how could i join between the submit form and the exec function, and also i need to exec different function on different cck, for example i made a cck for create category, when i press submit it should exec a function, on the other hand i create a cck for products, so when submitting it should exec the function of product not the category one, so what is the way to do that.
thanx a lot
i wish you understand my point.
i don't want to teach me how to write the perl function, because i have already wrote it, i just want the drupal function which can be used on CCk to execute the outside function.
thanx alot

Comments

marcvangend’s picture

I don't like to be contacted privately about individual support questions.
I already told you that I know nothing about perl. You did the right thing by posting your question in a new thread, now have confidence that if someone comes along who knows the answer, he will tell you.

eng.anas’s picture

iam not talking about perl
iam talking if there is aNY FUNCTIOPN IN DRUPAL THAT EXECUTE MY OWN COOOOOOODE

marcvangend’s picture

Please don't shout at me in capitals.
You are talking about perl. I don't have a clue about perl, I don't even know if you can make perl scripts communicate with php scripts, so that's why it's hard for me to help you.
On the other hand, "is there any function in drupal that execute my own code" is the clearest question you asked me so far. If it is code that should run after a node is submitted, write your own module implementing hook_nodeapi (see http://api.drupal.org/api/function/hook_nodeapi/6). When you search this forum, the handbooks and the rest of the internet for hook_nodeapi, you will find plenty of examples and info.

eng.anas’s picture

:$ sorry my rudeness fella, i'll do it latter ... thanx