Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda