Problem with contact form

Author Message

ez Freak

Wednesday 30 January 2008 3:06:04 am

hello,

i use the feedback form. my html-source

<form method="post" action="content/action">
Your Email address
<input class="box" type="text" size="20" name="ContentObjectAttribute_data_text_4317" value="" />
Subject
<input class="box" type="text" size="70" name="ContentObjectAttribute_ezstring_data_text_4315" value="" />
Message
<textarea class="box" name="ContentObjectAttribute_data_text_4316" cols="70" rows="10"></textarea>
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="Send form" />
<input type="hidden" name="ContentNodeID" value="513" />
<input type="hidden" name="ContentObjectID" value="538" />
<input type="hidden" name="ViewMode" value="full" />
</form>

but, if I press on send-button, he jumps to search-funktion ?
my browser-adress-linie:

http://xxx.com/yyy/content/search?SearchText=&ContentObjectAttribute_data_text_4317=&ContentObjectAttribute_ezstring_data_text_4315=&ContentObjectAttribute_data_text_4316=&ActionCollectInformation=Send+form&ContentNodeID=513&ContentObjectID=538&ViewMode=full

and i can read on my site No results were found when searching for ""

what is wrong?

thanks

ez Freak

Tuesday 12 February 2008 2:37:15 am

hi,

has nobody an idea what happen?

help, help, help :-)

thanks

Ɓukasz Serwatka

Tuesday 12 February 2008 2:55:57 am

Compare your tpl code with ezwebin code: http://zev.ez.no/svn/extensions/ezwebin/trunk/packages/ezwebin_extension/ezextension/ezwebin/design/ezwebin/override/templates/full/feedback_form.tpl

Check also if your code does not have any nested forms. Check for possible re-write rules or redirections.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

ez Freak

Wednesday 13 February 2008 2:03:34 am

hello,

thanks for your answer.

i maked a dummy node with the name sitemap and maked a custom template for the new dummy node.
my template is laoded and include the code from the feedback_form.tpl

but when i click on send button the form send:

http://xxx/yyy/content/search?SearchText=&ContentObjectAttribute_data_text_16220=&ContentObjectAttribute_ezstring_data_text_16218=&ContentObjectAttribute_data_text_16219=&ActionCollectInformation=Send+form&ContentNodeID=2808&ContentObjectID=2120&ViewMode=full

the validation is not working!

i dont anderstand this effect!

what do you mean with it?
1. Check also if your code does not have any nested forms
2. Check for possible re-write rules or redirections

thanks

Abdelkader RHOUATI

Wednesday 13 February 2008 3:31:57 am

hi,

for validation you must include this code :

{default validation=false()}
       {section show=$validation}
           {include uri='design:content/collectedinfo_validation.tpl' validation=$validation                               collection_attributes=$collection_attributes}
     {/section}
{/default}

it permit to display the validation's errors.

tks.

Abdelkader

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

ez Freak

Monday 18 February 2008 3:26:20 am

thanks for your help.

i found the error. this is so simple.
in my page i have 2 forms. first form is the searchbox and the second form is a feedback.
my fault was that i forgot the "end tag" from my first form!

thats is it. </form>.

thanks :-)

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

Main resources:

Total runtime0.7758 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9141152.6250
Module start 'layout' 0.00510.0029 740.539139.4453
Module start 'content' 0.00790.7666 779.9844619.5313
Module end 'content' 0.77460.0012 1,399.515616.1641
Script end 0.7757  1,415.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4436160.0002
Check MTime0.00150.1900160.0001
Mysql Total
Database connection0.00060.078510.0006
Mysqli_queries0.717692.5063680.0106
Looping result0.00070.0871660.0000
Template Total0.748596.520.3742
Template load0.00160.211320.0008
Template processing0.746896.267320.3734
Template load and register function0.00020.023310.0002
states
state_id_array0.00140.178710.0014
state_identifier_array0.00090.115320.0004
Override
Cache load0.00150.1879490.0000
Sytem overhead
Fetch class attribute can translate value0.00070.090530.0002
Fetch class attribute name0.00080.107480.0001
XML
Image XML parsing0.00130.170330.0004
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00090.1195240.0000
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs