Forums / Developer / how to access a php file from a form in an email

how to access a php file from a form in an email

Author Message

ludo thomas

Monday 11 July 2005 9:50:13 am

hi all,

I'm lookig for a method to have a direct link to a php file from an email.

In my email I have a form and submit button that send a node ID.

I want to delete the object which I have the node ID.

In my case It is a newsletter unsubscription button in an email.

my php file is like:

$objectID = $node->attribute( 'contentobject_id' );
$node->remove();
$object =& eZContentObject::fetch( $objectID );
$object->purge();

 

My problem is:
<b>-where can I put my file.php?
-what is the right <form action=''>?
</b>
(form is in an send email)

thx a lot for your help.