[ ivanpro @ 06.03.2011. 19:39 ] @
Skinuo sam template u xml-u i preradio sam ga za moje potrebe, ali imam jedan "mali" problem ???

Ne radi mi Contact Form, tj. kada se popuni i klik na SEND izbaci poruku da nije poslato.

Ovako izgleda FormConfiguration.xml file

Molim ako neko zna gde je greska ili sta treba da se upise.
Code (xml):

<?xml version="1.0" encoding="utf-8"?>
<contactFormConfiguration>
     <emailTo><![CDATA[[email protected]]]></emailTo>
     <serverProcessorType>php</serverProcessorType>
     <serverProcessorFileName>contact</serverProcessorFileName>
     <validateRequiredOnly>false</validateRequiredOnly>
     <submitFormOnEnter>false</submitFormOnEnter>
     <messageSentText><![CDATA[Vaša poruka je poslata.]]></messageSentText>
     <messageSentFailedText><![CDATA[Greška, poruka nije poslata]]></messageSentFailedText>
     <formProcessingText><![CDATA[šalje se...]]></formProcessingText>
     <smtpServer><![CDATA[localhost]]></smtpServer>
     <smtpPort>25</smtpPort>
     <plainText>false</plainText>
     <emailFromSource>2</emailFromSource>
     <subjectSource><![CDATA[Contact Form from your site]]></subjectSource>
     <validationErrorMessages>
          <message type="maxRequirementError"><![CDATA[{LABEL} - The number of variants selected exceeds the maximum]]></message>
          <message type="reqExpError"><![CDATA[{LABEL} - The specified string does not match with the regular expression.]]></message>
          <message type="biggerThanMaxError"><![CDATA[{LABEL} - The specified number is greater than an acceptable biggest number for this field.]]></message>
          <message type="negativeError"><![CDATA[{LABEL} - The specified number must not be negative.]]></message>
          <message type="lowerThanMinError"><![CDATA[{LABEL} - The specified number is lower than an acceptable lowest number for this field.]]></message>
          <message type="minCharsLimitError"><![CDATA[{LABEL} - The specified number of characters in a field is less than a required minimum.]]></message>
          <message type="dateIsNotValidError"><![CDATA[{LABEL} - date has wrong format]]></message>
          <message type="shouldBeEqualError"><![CDATA[{LABEL} - values do not match]]></message>
          <message type="fieldIsRequired"><![CDATA[{LABEL} is required.]]></message>
          <message type="emailNotValid"><![CDATA[{LABEL} - Pogrešna e-mail adresa.]]></message>
          <message type="notANumberError"><![CDATA[{LABEL} - The data is not a number.]]></message>
          <message type="minRequirementError"><![CDATA[{LABEL} - The minimum number of variants is not selected]]></message>
     </validationErrorMessages>
</contactFormConfiguration>
 


[Ovu poruku je menjao Aleksandar Ružičić dana 07.03.2011. u 18:16 GMT+1]
[ Aleksandar Ružičić @ 07.03.2011. 17:18 ] @
daj malo vise informacija, koja aplikacija je u pitanju? ja se npr nikad nisam susretao sa ovakvim konfiguracionim fajlom...

u svakom slucaju tema nije za web dizajn i css, vec za neki forum vezan za server side jezike, ali dok ne kazes o cemu se tacno radi ostaje ovde..
[ ivanpro @ 08.03.2011. 15:39 ] @
OK, namestio sam.
Sada radi.

Hvala Aleksandre.

P.S. mozes da obrises celu temu.
[ balavi @ 08.03.2011. 15:48 ] @
postavi sta je bio problem i kako si ga resio, glupo je da se brise kad amoze nekom dapomogne
[ ivanpro @ 08.03.2011. 16:19 ] @
OK izinjavam se
.
.
.

<serverProcessorType>php</serverProcessorType>
<serverProcessorFileName>contact</serverProcessorFileName>
.
.
.

tip fajla .php
ime fajla "contact" (moze bilo koje ime ali mora i ovde da se promeni)

samo sam napravio klasican php fajl za slanje sa nazivom contact.php
znaci, kada kliknes na submit on odradi komandu iz tog fajla.