"Contact us" form problem

Author Message

Joan Massey Figols

Sunday 31 October 2004 11:04:54 am

Hi,
I have some problems with a contact us form.
The problem is that I want to change the flow of the form that usually EZ do, my idea is:
1.- user fills the fields.
2.- we validate the user data, if there is any error we show a warning message.
3.- (if no validate errors) we show all the data that users has put in the fields, and we give two options: "edit data" (so here is the first question <b> how can I fill the fields of the form with the user data?</b>), "send message".(<b>second problem: send a mail with the data and store it to a databse</b>)

So as you can see my problem is how to "refill" the form fields when user click the "edit data" button and then how to send the e-mail.

I'm working with EZ classes instead of make a simple form with javascript, perhaps is better to do a simple form?

This is my first "project" with EZ so I apologize if somebody thinks that this question is very simple, but I have been looking forums, documentation... and I didn't have any answer.

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

Main resources:

Total runtime0.6728 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1250152.6094
Module start 'layout' 0.00480.0027 741.734439.4141
Module start 'content' 0.00750.6638 781.1484400.8359
Module end 'content' 0.67130.0015 1,181.98448.1797
Script end 0.6727  1,190.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4518160.0002
Check MTime0.00140.2036160.0001
Mysql Total
Database connection0.00070.098910.0007
Mysqli_queries0.636594.6026460.0138
Looping result0.00040.0622440.0000
Template Total0.641595.320.3207
Template load0.00230.337420.0011
Template processing0.639295.004520.3196
Template load and register function0.00010.019910.0001
states
state_id_array0.00090.130510.0009
state_identifier_array0.00080.126120.0004
Override
Cache load0.00180.2611130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.098710.0007
Fetch class attribute name0.00060.095010.0006
XML
Image XML parsing0.00010.013810.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00070.1020100.0001
String conversion0.00000.001040.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs