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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 08:52:07
Script start
Timing: Jan 20 2025 08:52:07
Module start 'layout'
Timing: Jan 20 2025 08:52:07
Module start 'content'
Timing: Jan 20 2025 08:52:08
Module end 'content'
Timing: Jan 20 2025 08:52:08
Script end

Main resources:

Total runtime1.0686 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2891152.6406
Module start 'layout' 0.00600.0026 741.929739.4766
Module start 'content' 0.00861.0587 781.4063435.6641
Module end 'content' 1.06730.0013 1,217.07038.2813
Script end 1.0686  1,225.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2895160.0002
Check MTime0.00130.1235160.0001
Mysql Total
Database connection0.00080.077010.0008
Mysqli_queries1.027396.1322460.0223
Looping result0.00040.0395440.0000
Template Total1.039597.320.5198
Template load0.00200.188020.0010
Template processing1.037597.088220.5188
Template load and register function0.00010.009310.0001
states
state_id_array0.00070.066210.0007
state_identifier_array0.00110.106220.0006
Override
Cache load0.00160.1522180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.067110.0007
Fetch class attribute name0.00070.069220.0004
XML
Image XML parsing0.00050.047310.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.0755160.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs