[Typo3] Mailformplus and querystring

W van Bruggen w.van.bruggen at gmail.com
Wed Mar 23 15:24:02 CET 2005


The solution does seem to work. Here's the way i do it :

1) Having installed the Page PHP Content plugin, i inserted the
following code as the first element (you can also do this using TS).
This has the <form> tag and a hidden field that holds the querystring.
You have to add the variable that you process in the action= too as a
querystring. If you dont do it and the user has not filled in all
required fields, the querystring will be lost if you use
mailformplus's internal check function. This is the code i used :

<form name="Formular" method="post"
action="index.php?type=7&typehng=<? echo $_GET['typehng']; ?>"
enctype="multipart/form-data">
<input type="hidden" name="TYPEHNG" value="<? echo $_GET['typehng']; ?>">

2) The second element is the mailformplus extension. Insert a
mailform-template via the usual way. Remove the <form> tag from your
template, because php is going to parse that code.

This way you should be able to use the mailformplus extension. Its not
a very elegant solution, but it gets the job done. It would be a very
nice feature if you could set up your templates and dynamically add
fields for querystrings.

greets,
Wietse van Bruggen



More information about the TYPO3-english mailing list