[TYPO3-english] mailform and powermail not sending mails
Celso Reeks
typo3 at distopia.com
Thu Jun 25 00:27:07 CEST 2009
Hi guys!
Very well pointed out. It never occured to me that the problem could
be with the nested forms.
Which brings me to one more question: how do I un-nest them?
The top-level form field, the one that opens right after the <body>
tag, is inserted there automatically by Typo3, because of the menus,
which are TMENUs with "special = directory" values.
Any idea on how to, for example, tell Typo3 to open and close one
<form> tag for each menu, instead of opening at the beginning of the
code and closing at the end?
Here are the typoscript for both menus:
lib.menu_info = COA
lib.menu_info {
wrap = <select onchange="if (this[this.selectedIndex].value!=0)
document.location.href=this[this.selectedIndex].value" class="menu-
select">|</select>
10 = TEXT
10.value = info
10.wrap = <option value="0">|</option>
20 = HMENU
20.special = directory
20.special.value = 112
20.1 = TMENU
20.1 {
NO {
doNotLinkIt = 1
stdWrap.cObject = COA
stdWrap.cObject {
10 = COA
10 {
wrap = <option value="|">
10 = TEXT
10.data = getIndpEnv:TYPO3_REQUEST_HOST
10.wrap = |/
20 = TEXT
20.typolink.parameter.field = uid
20.typolink.returnLast = url
}
20 = TEXT
20.field = title
20.wrap = |</option>
}
}
CUR < .NO
CUR = 1
CUR.stdWrap.cObject.10.wrap =<option value="|" selected=selected>
}
}
lib.menu_espetaculo = COA
lib.menu_espetaculo {
wrap = <select onchange="if (this[this.selectedIndex].value!=0)
document.location.href=this[this.selectedIndex].value" class="menu-
select">|</select>
10 = TEXT
10.value = espetáculos
10.wrap = <option value="0">|</option>
20 = HMENU
20.special = directory
20.special.value = 107
20.1 = TMENU
20.1 {
NO {
doNotLinkIt = 1
stdWrap.cObject = COA
stdWrap.cObject {
10 = COA
10 {
wrap = <option value="|">
10 = TEXT
10.data = getIndpEnv:TYPO3_REQUEST_HOST
10.wrap = |/
20 = TEXT
20.typolink.parameter.field = uid
20.typolink.returnLast = url
}
20 = TEXT
20.field = title
20.wrap = |</option>
}
}
CUR < .NO
CUR = 1
CUR.stdWrap.cObject.10.wrap =<option value="|" selected=selected>
}
}
Thanks a lot for all the help!
Celso
On 18/06/2009, at 11:17, Luis Flávio Seelig wrote:
> ------------------------------
>>
>> Message: 10
>> Date: Thu, 18 Jun 2009 07:29:22 +0200
>> From: Jigal van Hemert <jigal at xs4all.nl>
>> Subject: Re: [TYPO3-english] mailform and powermail not sending mails
>> To: typo3-english at lists.netfielders.de
>> Message-ID:
>> <mailman.1.1245302964.4661.typo3-english at lists.netfielders.de>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Celso Reeks wrote:
>>> Buggy (TYPO3 v 4.2.6)
>>> http://www.novadanca4.com.br/info/contato/
>>
>> In this page the first tag inside the <body> is a <form> (probably
>> for
>> the select boxes in the menu) and the actual mailform is inside this
>> form. Maybe the validation routines get confused by nested forms? (Is
>> this legal in HTML?)
>>
>> After disabling JavaScript the submit button leads me to a 'new' URL:
>> the same page with the form parameters as query variables. Rather
>> odd,
>> because teh inner form has method=post...
>>
>> The old and working page does not have a nested form.
>>
>> Please fix this nested form problem and test again...
>>
>> --
>> Jigal van Hemert.
>>
>>
> Hi Celso,
>
> Jigal is right. Those nested "form" tags must be your problem. And
> answering
> Jigal's questions: yes, the parameters get confused and no, nested
> forms are
> not legal on HTML.
>
> Best Regards,
>
> Luis Flávio Seelig
> lflavios at gmail.com
> ----
> Linux User #363919
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list