Get data submitted via a form to an external php script

Author Message

Kenneth Colwell

Monday 23 February 2004 1:04:43 pm

I've looked at this:

http://ez.no/community/forum/developer/http_post_get_hack_instead_of_ezenv

and it doesn't work. Is this hack not compatable with 3.2?

I've also looked at ezenv and it will not work because I need arrays from the form.

Does anyone have any hints? help? or fenceposts that I can bang my head into over and over until the pain of upgrading from 2.2.9 to 3 goes away?

Thanks,
Ken Colwell

Balazs Halasy

Tuesday 24 February 2004 12:22:57 am

Hi,

If you wish to write a simple external PHP script that should handle the data which was input using a form, I think you should do the following:

Look at the form module. This is a _very_ simple module. Anybody with some basic PHP skills should understand it. It is located under "/kernel/form". There are two files: module.php and process.php. The module file simply tells eZ publish about the view(s)/function(s) that are available in this module. As you can see, there is only 1 function/view, which is the "process" thing. This is a simple view/function that uses form-input data to send an email. Simply copy the entire thing and create your custom module out of it (as an extension of course). Replace the PHP code with your own PHP code (reuse the existing code to figure out how to get the contents of the forms, etc.).

Good luck.

Balazs

javier sanchez

Wednesday 25 February 2004 2:43:32 pm

well im having the same problem, i got 2 information collect pages (2nd continues from the first) and i want to display data on a 3 one and save it to a database , so i got to pass info from page 1 to page 2 as an array (more than 15 values) and from page 2 to page 3... but in page 3 i want to show data from both pages, i tried tweaking with "HTTP POST & GET Hack (instead of ezenv)" and tried "EzEnv" itself, im very frustrated, im using ezpublish instead of programming in php at raw, but i cant get the info to pass from one template to another, or even create a global repository for my info (like a cookie, or whatever)

thanks javier sanchez-galan

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 18 2025 20:56:19
Script start
Timing: Jan 18 2025 20:56:19
Module start 'layout'
Timing: Jan 18 2025 20:56:19
Module start 'content'
Timing: Jan 18 2025 20:56:20
Module end 'content'
Timing: Jan 18 2025 20:56:20
Script end

Main resources:

Total runtime0.7346 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.1563152.6563
Module start 'layout' 0.00710.0024 740.812539.5078
Module start 'content' 0.00950.7228 780.3203537.7109
Module end 'content' 0.73240.0022 1,318.031312.1094
Script end 0.7345  1,330.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4742160.0002
Check MTime0.00130.1824160.0001
Mysql Total
Database connection0.00080.115210.0008
Mysqli_queries0.679192.4495590.0115
Looping result0.00070.0953570.0000
Template Total0.690894.020.3454
Template load0.00220.305720.0011
Template processing0.688593.731220.3443
Template load and register function0.00050.063510.0005
states
state_id_array0.00230.316010.0023
state_identifier_array0.00100.139420.0005
Override
Cache load0.00170.2307200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.102130.0002
Fetch class attribute name0.00140.190440.0003
XML
Image XML parsing0.00090.125030.0003
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00140.1881160.0001
String conversion0.00000.001440.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs