simple form

Author Message

Rinze Cats

Wednesday 05 May 2004 4:00:18 am

Sorry for asking so many questions, i have a lot of (basic) problems ;-(

I activated the form module. Sending an email to a predefined adres is working ok!

I want to create a 'sent this to a friend' option. This should be a form that has a textfield for entering an email adres. The form should post to this adress.

How do I go about it?

another question:
how can I redirect to a new page based on a condition (no form redirect or anything)?
{section show=<some condition>}
redirect to $node
{}

thanx again for any help

Eirik Alfstad Johansen

Wednesday 05 May 2004 4:47:08 am

Hi Rinze,

You should be able to work it out from this forms creation tutorial from the ol' 3.1 docs:

http://pubsvn.ez.no/sdk/tutorials/view/forms

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Rinze Cats

Wednesday 05 May 2004 8:56:15 am

This wasn't exactly what I meant, because I wanted the visitor of the site to be able to change the sendto adres.

Did help though! cause it made me realize that that the hidden field for the send to could simply be replaced with an input field. (duh)

Maybe you can help me some more:
- Any suggestions on how to redirect a page. I want to test a condition on the homepage to determine which 'issue' should be shown?

- Any suggestions on passing vars. I need to pass the nodeid of a template to the next page. I can use the $view_parameters.MYVAR, but ez seems to forget this var when refreshing?

thanx! rinze

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 19 2025 03:44:04
Script start
Timing: Jan 19 2025 03:44:04
Module start 'layout'
Timing: Jan 19 2025 03:44:04
Module start 'content'
Timing: Jan 19 2025 03:44:05
Module end 'content'
Timing: Jan 19 2025 03:44:05
Script end

Main resources:

Total runtime1.2777 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0313152.6094
Module start 'layout' 0.00480.0033 741.640639.3984
Module start 'content' 0.00811.2681 781.0391533.0078
Module end 'content' 1.27620.0015 1,314.046912.2031
Script end 1.2777  1,326.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2767160.0002
Check MTime0.00130.1035160.0001
Mysql Total
Database connection0.00050.036610.0005
Mysqli_queries1.226996.0188570.0215
Looping result0.00060.0469550.0000
Template Total1.246797.620.6234
Template load0.00220.168520.0011
Template processing1.244597.402420.6223
Template load and register function0.00020.013510.0002
states
state_id_array0.00110.083610.0011
state_identifier_array0.00070.053720.0003
Override
Cache load0.00180.1377280.0001
Sytem overhead
Fetch class attribute can translate value0.00070.053120.0003
Fetch class attribute name0.00150.115140.0004
XML
Image XML parsing0.00080.060720.0004
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00100.0748160.0001
String conversion0.00000.000740.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs