Search

Hello,

I'm trying to make a contact form that lets the user select its recipients trough a drop down (or takes it as a parameter from a previous page).

Here is a link to the code: http://pastie.org/4581404

I've been fooling around trying to get the send-email[recipient] get the Username value from the dropdown. So far it only works when I use a path to website-owner or just static text.

Why doesn't it take the value when passed on by the select?

This is what I get in Firebug when looking at the net tab.

action[save-message] Send Message fields[email] x@hotmail.com fields[firstname] gdsfgdf fields[message] fsdfasfasfsad fields[name] gdsgsdf fields[recipient] Simon fields[subject] fsdafasdf send-email[body]
fields[firstname],fields[name],fields[subject],fields[message],fields[email]

send-email[recipient] <<< This field should read 'Simon' send-email[sender-email]
send-email[sender-firstname]
send-email[sender-name] send-email[subject]

help is much appreciated!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details