Hallo,
i need help
i have made a contact formular with eform in evo 1.0.15.
It is shown nicely but when i click on "Send" i am redirected to my defined error-page.
the formular is www.mydomain.de/service/kontakt.html.
"mydomain.de" is a placeholder (also in the code below).
When i click on "Send" the following page has the URL
www.mydomain.de/service
/service/kontakt.html.
The Page-Ressource for eform:
[!eForm? &formid=`feedbackForm` &to=`info@mydomain,de` &tpl=`eFeedBackForm` &report=`eFeedbackReport`&thankyou=`eFeedbackThanks` &vericode=`0` &subject=`Kontakt - www.mydomain.de`!]
Chunk eFeedbackForm:
<form method="post" action="[~[*id*]~]">
<input type="hidden" name="formid" value="feedbackForm" />
<p class="error">[+validationmessage+]</p>
<label for="cfName" class="label">Vorname, Name </label>
<input name="name" id="cfName" class="text" type="text" eform="Ihr Name::1:" />
<br class="cf">
<label for="cfEmail" class="label">E-Mail </label>
<input name="email" id="cfEmail" class="text" type="text" eform="Ihre Email-Adresse:email:1" />
<br class="cf">
<label for="cfFon" class="label">Telefon </label>
<input name="fon" id="cfFon" class="text" type="text" />
<br class="cf">
<label for="cfRueckruf" class="label">Rückruf? </label>
<input name="rueckruf" id="cfRueckruf" class="checkbox" type="checkbox" value="Ich bitte um Rückruf" />
<br class="cf">
<label for="cfMessage" class="label">Ihre Nachricht </label>
<textarea name="message" id="cfMessage" class="textarea" eform="Ihre Nachricht:html:1"></textarea>
<br class="cf">
<label> </label>
<input type="submit" name="contact" id="cfContact" class="submit" value="Absenden" />
<br class="cf">
</form>
Chunk eFeedbackReport:
<body style="color: #404040;font-family: Helvetica, Verdana, Arial, Sans-Serif; font-size: 12px;line-height: 22px;">
<p>Diese Nachricht wurde von [+name+] über das Kontaktformular verschickt:</p>
<table style="color: #404040;font-family: Helvetica, Verdana, Arial, Sans-Serif; font-size: 12px;line-height: 22px;">
<tr valign="top"><td>Name:</td><td>[+name+]</td></tr>
<tr valign="top"><td>Email:</td><td>[+email+]</td></tr>
<tr valign="top"><td>Telefonnummer:</td><td>[+fon+]</td></tr>
<tr valign="top"><td></td><td>[+rueckruf+]</td></tr>
<tr valign="top"><td>Nachricht:</td><td>[+message+]</td></tr>
</table>
<p>Zum Antworten einfach hier klicken: <a href="mailto:[+email+]?subject=RE:[+subject+]">[+email+]</a></p>
chunk eFeedbackThanks:
<p><strong>Vielen Dank!</strong><br>Wir haben Ihre Nachricht erhalten und werden uns gegebenenfalls bei Ihnen melden.</p>
i can't the something special in the serverlogfiles.
Please help me :-(
Best regards
Chico
p.s. Here is the Snippet-Code, which i copied in the Snippet "eform":
<?php
if(!defined('MODX_BASE_PATH')){die('What are you doing? Get out of here!');}
# eForm 1.4.6 - Electronic Form Snippet
# Original created by Raymond Irving 15-Dec-2004.
# Version 1.3+ extended by Jelle Jager (TobyL) September 2006
# -----------------------------------------------------
# Captcha image support - thanks to Djamoer
# Multi checkbox, radio, select support - thanks to Djamoer
# Form Parser and extened validation - by Jelle Jager
#
# see eform/docs/eform.htm for history, usage and examples
#
# Set Snippet Paths
$snipFolder = isset($snipFolder)?$snipFolder:'eform';
$snipPath = $modx->config["base_path"].'assets/snippets/'.$snipFolder.'/';
# check if inside manager
if ($modx->isBackend()) {
return ''; # don't go any further when inside manager
}
//tidying up some casing errors in parameters
if(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;
if(isset($eformOnBeforeMailSent)) $eFormOnBeforeMailSent = $eformOnBeforeMailSent;
if(isset($eformOnMailSent)) $eFormOnMailSent = $eformOnMailSent;
if(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;
if(isset($eformOnBeforeFormMerge)) $eFormOnBeforeFormMerge = $eformOnBeforeFormMerge;
if(isset($eformOnBeforeFormParse)) $eFormOnBeforeFormParse = $eformOnBeforeFormParse;
//for sottwell :)
if(isset($eFormCSS)) $cssStyle = $eFormCSS;
# Snippet customize settings
$params = array (
// Snippet Path
'snipPath' => $snipPath, //includes $snipFolder
'snipFolder' => $snipFolder,
// eForm Params
'vericode' => isset($vericode)? $vericode:"",
'formid' => isset($formid)? $formid:"",
'from' => isset($from)? $from:$modx->config['emailsender'],
'fromname' => isset($fromname)? $fromname:$modx->config['site_name'],
'to' => isset($to)? $to:$modx->config['emailsender'],
'cc' => isset($cc)? $cc:"",
'bcc' => isset($bcc)? $bcc:"",
'subject' => isset($subject)? $subject:"",
'ccsender' => isset($ccsender)?$ccsender:0,
'sendirect' => isset($sendirect)? $sendirect:0,
'mselector' => isset($mailselector)? $mailselector:0,
'mobile' => isset($mobile)? $mobile:'',
'mobiletext' => isset($mobiletext)? $mobiletext:'',
'autosender' => isset($autosender)? $autosender:$from,
'autotext' => isset($automessage)? $automessage:"",
'category' => isset($category)? $category:0,
'keywords' => isset($keywords)? $keywords:"",
'gid' => isset($gotoid)? $gotoid:$modx->documentIdentifier,
'noemail' => isset($noemail)? ($noemail):false,
'saveform' => isset($saveform)? ($saveform? true:false):true,
'tpl' => isset($tpl)? $tpl:"",
'report' => isset($report)? $report:"",
'allowhtml' => isset($allowhtml)? $allowhtml:0,
//Added by JJ
'replyto' => isset($replyto)? $replyto:"",
'language' => isset($language)? $language:$modx->config['manager_language'],
'thankyou' => isset($thankyou)? $thankyou:"",
'isDebug' => isset($debug)? $debug:0,
'reportAbuse' => isset($reportAbuse)? $reportAbuse:false,
'disclaimer' => isset($disclaimer)?$disclaimer:'',
'sendAsHtml' => isset($sendAsHtml)?$sendAsHtml:false,
'sendAsText' => isset($sendAsText)?$sendAsText:false,
'sessionVars' => isset($sessionVars)?$sessionVars:false,
'postOverides' => isset($postOverides)?$postOverides:0,
'eFormOnBeforeMailSent' => isset($eFormOnBeforeMailSent)?$eFormOnBeforeMailSent:'',
'eFormOnMailSent' => isset($eFormOnMailSent)?$eFormOnMailSent:'',
'eFormOnValidate' => isset($eFormOnValidate)?$eFormOnValidate:'',
'eFormOnBeforeFormMerge' => isset($eFormOnBeforeFormMerge)?$eFormOnBeforeFormMerge:'',
'eFormOnBeforeFormParse' => isset($eFormOnBeforeFormParse)?$eFormOnBeforeFormParse:'',
'cssStyle' => isset($cssStyle)?$cssStyle:'',
'jScript' => isset($jScript)?$jScript:'',
'submitLimit' => (isset($submitLimit) && is_numeric($submitLimit))?$submitLimit*60:0,
'protectSubmit' => isset($protectSubmit)?$protectSubmit:1,
'requiredClass' => isset($requiredClass)?$requiredClass:"required",
'invalidClass' => isset($invalidClass)?$invalidClass:"invalid",
'runSnippet' => ( isset($runSnippet) && !is_numeric($runSnippet) )?$runSnippet:'',
'autoSenderName' => isset($autoSenderName)?$autoSenderName:'',
'attachmentField' => isset($attachmentField)?$attachmentField:'',
'attachmentPath' => isset($attachmentPath)?$attachmentPath:'',
'errorTpl' => isset($errorTpl)?$errorTpl:'<div class="errors"><strong>[+ef_message_text+]</strong><br />[+ef_wrapper+]</div>',
'errorRequiredTpl' => isset($errorRequiredTpl)?$errorRequiredTpl:'<span class="requiredlist"><span>[+ef_required_list+]</span>.</span>',
'errorRequiredSeparator' => isset($errorRequiredSeparator)?$errorRequiredSeparator:'</span>, <span>',
'version' => '1.4.6'
);
// pixelchutes PHx workaround
foreach( $params as $key=>$val ) $params[ $key ] = str_replace( array('((','))'), array('[+','+]'), $val );
# Start processing
include_once ($snipPath."eform.inc.php");
$output = eForm($modx,$params);
# Return
return $output;
?>