Subject being changed once email is sent

Posted on 2011-05-11
Last Modified: 2012-05-11
I am using joomla's built in phpmailer.

The page being used is accessed through our online store where a user enters  information regarding a template they would like to customize. The template number is passed through the URL as: t_number. The template number is than assigned to the subject form.

Everything works, the template number is displayed in the Subject field and everything is sent find, but for one reason or another the subject name is not passed and subsequently is changed to: MAILENQUIRY when it should be: Template ID: XXXXX

Code is below.


<input type="text" name="subject" id="contact-subject" class="inputbox" value="Template ID: <?php echo $_GET['t_number'];  ?>" readonly="readonly" disabled="disabled"/>

Open in new window

Question by:Morgan
    LVL 82

    Accepted Solution

    Two things: MAILENQUIRY is probably hard-coded into the script although it may be an alternative to the subject.  I believe that  disabled="disabled" prevent the field from being submitted with the form.  So even it would work otherwise, the email script is not seeing it.
    LVL 1

    Author Comment

    Yeah it was the disabled attribute that was causing the issue.

    LVL 82

    Expert Comment

    by:Dave Baldwin
    You're welcome!

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now