Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!