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

170
Views
How to find out how the form input value gets assigned its concrete value

I am having some code where I cannot find out where the values for 'add_bereich' are coming from. In the form its declared as empty value. But when saved in the database it has an integer.

I have a form and when submitted its values get saved in the database

<div class='dialog_form' id='bereich-form' title='Neuer Bereich'>            
  <form action='/mbm-kalkulation/?id=".$_GET["id"]."'  method='post' id='bereich_form'>
    <input type='hidden' name='add_bereich' id='add_bereich' value=''>
    <fieldset>
      <label for='name'>Name</label>
      <input type='text' name='bereich_name' id='bereich_name' value='' class='text ui-widget-content ui-corner-all'>
 
      <input type='submit' tabindex='-1' style='position:absolute; top:-1000px'>
    </fieldset>
  </form>
</div>

Then when submitted the following values get saved into the database

if(isset($_REQUEST["add_bereich"])){
    
    $wpdb->insert("mbmerp_angebote_bereich", array(
        'aid' => $_GET["id"],
        'rid' => $_REQUEST["add_bereich"],
        'name' => $_REQUEST["bereich_name"]
    )); 

}

After that I might find a record for 'add_bereich' in the database with an interger e.g. 3.

Where is that coming from?

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!