-
javascript question
In an email form I’m using a php script to send the email. I’d like the subject to be a combination of fields on the form.
Currently, I can set any of the fields to be called “subject” and then it will be the subject of the email.
The script provides code to create the default subject to “form submission” if there is no subject field. I thought this might be the easiest place to adjust the javascript if I had a clue what I was doing!
The line I’d like to adjust is…
// if the subject option is not set: set the default
if (!$subject)
$subject = “Form submission”;What I’d like to do is change the text from Form submission to “# of attendees” and then add the result of the attendees field so that the subject line reads… “# attendees 2” (without the quotes of course.
I know this must be simple. I just don’t know javascript.