PHP and post method

Author Message

Marek Elsner

Sunday 14 November 2004 6:19:52 am

Hello,

I have PHP script, which read data, sent using POST method.
I would like to have form and after submitting data, PHP script should read them and do sth.
It is not a problem to include PHP script:

http://ez.no/ez_publish/documentation/customization/tips_tricks/including_php_files_in_templates

I was trying to use:

<form method="post" action={"http://localhost/script.php"|marksPHPinsert}>

but it just insert PHP script before submitting data and after submitting I got error, that PHP script can't be read properly.

Maybe someone know how to use PHP script in such a way...?

thx

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 31 2025 06:11:59
Script start
Timing: Jan 31 2025 06:11:59
Module start 'layout'
Timing: Jan 31 2025 06:11:59
Module start 'content'
Timing: Jan 31 2025 06:11:59
Module end 'content'
Timing: Jan 31 2025 06:11:59
Script end

Main resources:

Total runtime0.0131 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0078151.1953
Module start 'layout' 0.00500.0016 739.203136.6328
Module start 'content' 0.00660.0053 775.835985.9844
Module end 'content' 0.01190.0012 861.820329.9922
Script end 0.0131  891.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.3519140.0002
Check MTime0.00107.8856140.0001
Mysql Total
Database connection0.00075.632110.0007
Mysqli_queries0.001914.140030.0006
Looping result0.00000.059910.0000
Template Total0.00107.310.0010
Template load0.00085.768110.0008
Template processing0.00021.545910.0002
Override
Cache load0.00054.019010.0005
General
dbfile0.002216.888980.0003
String conversion0.00000.038140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs