Forums / Setup & design / Problem with contact form

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 :-)

eZ debug

Timing: Jan 18 2025 18:40:19
Script start
Timing: Jan 18 2025 18:40:19
Module start 'content'
Timing: Jan 18 2025 18:40:19
Module end 'content'
Timing: Jan 18 2025 18:40:19
Script end

Main resources:

Total runtime0.1817 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 587.7109180.8359
Module start 'content' 0.00910.0123 768.546997.9922
Module end 'content' 0.02150.1601 866.5391527.7734
Script end 0.1816  1,394.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00452.4902200.0002
Check MTime0.00191.0418200.0001
Mysql Total
Database connection0.00160.861010.0016
Mysqli_queries0.125068.81861410.0009
Looping result0.00120.65531390.0000
Template Total0.159487.710.1594
Template load0.00120.660510.0012
Template processing0.158287.079910.1582
Override
Cache load0.00080.441510.0008
Sytem overhead
Fetch class attribute can translate value0.00160.867010.0016
XML
Image XML parsing0.00020.129910.0002
General
dbfile0.00150.8503200.0001
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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