Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

101
Vistas
form values not passing through action url in php

I have a simple form made in PHP, I am trying to pass the select value in the page mentioned in the action URL,

<form action="filtertable.php" method="post">
    <select class="form-select" name="filtercategory" aria-label="Default select example"
        onchange="this.form.submit()">
        <option selected>Select Category</option>
        <option value="<?php echo $roww["c_id"]; ?>"><?php echo $roww["cname"]; ?></option>
    </select>
</form>

when the user selects on any select box it will go to the page filtertable.php, and from there am trying to get the selected value like this:

<?php

$filtercategory=$_POST['filtercategory'];

However it doesn't work, can anyone please tell me what is wrong in here, thanks in advance

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda