[TYPO3] tmail submit causing indexed sarch to submit...

Oliver Rowlands oliver at liquidlight.co.uk
Wed May 23 23:52:17 CEST 2007


Hi Andrew,

Adding the closing '</form>' tag to your 'searchbox' might help ;)

Making sure your HTML actually validates is a good way of resolving bugs.

Regards,

Oliver

Andrew Davis wrote:
> i am using tmail form to send an email. i also have a searchbox for 
> indexed search on the same page.
> 
> when i click on send to send my email, it thinks that i want to search 
> using indexed search.
> 
> if i dont insert the search box onto the page, the tmail form works 
> perfectly.
> 
> any ideas? i ave the forms named differently, but submit is submitting 
> the search not the mail....
> 
> here is my setup code for the searchbox:
> 
> 
> 
> 
> [begin ts setup]
> 
> # --- SEARCHBOX OBJECT ----------------------------------
> temp.searchbox = COA_INT
> temp.searchbox {
>   stdWrap.prefixComment = 2 | temp.searchbox
>   10 = TEXT
>  # 10.typolink.parameter = {$plugin.tx_indexedsearch.searchUID}
> 
>   #page search plugin lives on
>   10.typolink.parameter = 24
>   10.typolink.returnLast = url
> 
>   #10.wrap = <div id="indexedsearchbox"><form action="|" method="post" 
> id="indexedsearch">
>   10.wrap = <form action="|" method="post" id="indexedsearch" 
> name="indexedsearch">
>   20 = COA
>   20 {
>     #wrap = <tr> | </tr>
>     10 = TEXT
>     10.data = GPvar : tx_indexedsearch |sword
>     10.wrap = <input name="tx_indexedsearch[sword]" value="|" size="18" 
> class="searchbox-sword" type="text" />
>     20 = COA
>     20 {
>       10 = TEXT
>       10.value = <input type="hidden" name="tx_indexedsearch[sections]" 
> value="0" /><input name="tx_indexedsearch[submit_button]" value="Search" 
> type="hidden" /><input name="search" 
> src="fileadmin/template/images/search.gif" value="Search" 
> id="searchbox_button" type="image" />
>     }
>   }
> /*
>   30 = COA
>   30 {
>     10 = TEXT
>     10.value = (Advanced Search)
>     #10.typolink.parameter = {$plugin.tx_indexedsearch.searchUID}
>     10.typolink.parameter = 19
>     10.typolink.additionalParams = &tx_indexedsearch[ext]=1
>     if.isTrue = {$plugin.tx_indexedsearch.showAdvanced}
>   }
> */
>   #wrap = | </div>
> }
> 
> [end ts setup]


-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


More information about the TYPO3-english mailing list