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