Simple Survey

Author Message

Lance Leger

Monday 30 June 2003 6:38:12 am

I'm trying to create a simple survey form and I have two questions:

1) How do I easily increment a node attribute upon submitting a form?

2) Is there a way to set session variables in eZ publish so I can set a variable named "already_voted" for example to yes (this will only allow a person to vote once per session).

Any help would be greatly appreciated.

Thanks,

Lance

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

Main resources:

Total runtime0.0213 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0078151.1953
Module start 'layout' 0.00550.0034 739.2031220.6563
Module start 'content' 0.00880.0112 959.8594993.5547
Module end 'content' 0.02010.0012 1,953.414129.9922
Script end 0.0212  1,983.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002913.5760140.0002
Check MTime0.00104.7810140.0001
Mysql Total
Database connection0.00073.484810.0007
Mysqli_queries0.00219.705530.0007
Looping result0.00000.061710.0000
Template Total0.00083.910.0008
Template load0.00073.136110.0007
Template processing0.00020.771410.0002
Override
Cache load0.00052.139310.0005
General
dbfile0.00125.512080.0001
String conversion0.00000.032540.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