Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9220775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:25:39+00:00 2026-06-18T03:25:39+00:00

I have a contact form on my site. I have a dropdown with the

  • 0

I have a contact form on my site. I have a dropdown with the “allowed” subjects. However, I’ve been getting emails sent from the form with subjects that are not in my dropdown form.

The form is an ExpressionEngine template and it submits to itself with an added url segment .i.e ‘/contact/submit’. The template checks for the submit segment and then sends the values to an EE plugin that builds the email and sends it. The form’s method is a POST.

How could they be circumventing the subject dropdown?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:25:40+00:00Added an answer on June 18, 2026 at 3:25 am

    What’s probably going on is that they’re injecting their own subject. If your dropdown values are strings and you’re just using them as is, it’s pretty easy to use your own subject.

    As a fix, you could tie a numerical ID to each dropdown value, then on the backend, do a switch between the possible values. For example (in PHP)

    <?php
    $reject = false;
    if(isset($_POST['subject']))
    {
        switch(intval($_POST['subject']))
        {
            case 1: // General inquiry:
               $subjectStr = "General Inquiry";
               break;
            ...
            default: 
               $reject = true;
               break;
        }
    }
    else
    {
        $reject = true;
    }
    if(!$reject)
    {
        // Process email
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a contact form on my site that when clicked highlights the
I have a contact form that connects to my site's back-end, the form submits
I have a simple Contact form, with 'Send' button', that send mail from an
I have a contact form that can be hidden using .slideToggle() but I want
I have a simple contact form with Subject and Message that I want to
I have a simple contact form on a site. There is an email account
I have a simple contact form on a website that has 2 text fields,
I am developing a wordpress theme and I have a contact form that uses
Checking through my contact form I have found Cross Site Scripting vulnerabilities but haven't
I have been looking all day for a way to make a contact form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.