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 15 2025 08:20:12
Script start
Timing: Jan 15 2025 08:20:12
Module start 'layout'
Timing: Jan 15 2025 08:20:12
Module start 'content'
Timing: Jan 15 2025 08:20:14
Module end 'content'
Timing: Jan 15 2025 08:20:14
Script end

Main resources:

Total runtime1.3173 sec
Peak memory usage6,144.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 684.8594183.7031
Module start 'layout' 0.00560.0023 868.562552.5938
Module start 'content' 0.00781.3077 921.15631,696.0000
Module end 'content' 1.31550.0017 2,617.156364.6641
Script end 1.3172  2,681.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00540.4090160.0003
Check MTime0.00150.1175160.0001
Mysql Total
Database connection0.00070.055210.0007
Mysqli_queries1.272596.6002460.0277
Looping result0.00040.0288440.0000
Template Total1.289797.920.6448
Template load0.00320.242820.0016
Template processing1.286597.661220.6432
Template load and register function0.00130.102510.0013
states
state_id_array0.00060.048710.0006
state_identifier_array0.00200.148820.0010
Override
Cache load0.00280.2115180.0002
Sytem overhead
Fetch class attribute can translate value0.00080.059510.0008
Fetch class attribute name0.00180.139920.0009
XML
Image XML parsing0.00060.042910.0006
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00080.0639160.0001
String conversion0.00000.000640.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