3 users online. Create an account or sign in to join them.Users

Search

Hello,

I am currently building a website with a simple contact form that appears at the bottom of every (!) page.

The form works i.e. it does send an email to me but it does not return any @result. When the user enters nothing and hits “Send”, nothing happens. No feedback, nothing. This is my code:

 <xsl:for-each select="events/send-email">
    <p class="{@result}">
    <xsl:choose>
            <xsl:when test="@result = 'success'">E-mail sent.</xsl:when>
            <xsl:otherwise>Please fill in all fields.</xsl:otherwise>
    </xsl:choose>
    </p>
</xsl:for-each>

I wonder if this is because the above code is located in my master utility and then imported into the various pages?

If anyone can help, please let me know. Thanks!

Maybe you are in the wrong context node? Have you tried using /data/events/send-mail in your for-each?

Hey Nils,

That’s it, thanks a lot for your help!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details