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

219
Views
¿Cómo puedo obtener el valor de la casilla de verificación en PHP?

Estoy tratando de crear una página de registro para mi sitio web, pero cuando la ejecuto; da error. ¿Qué estoy haciendo mal?

 <?php //Form values $name_value=$_POST['Name_input']; $Username_value=$_POST['Username_input']; $DOB_value=$_POST['DOB_input']; $Password_value=$_POST['Password_input']; $Phone_number_value=$_POST['Phone_number_input']; $Python_checkbox_value=$_POST['Python_checkbox']; $Java_checkbox_value=$_POST['Java_checkbox']; $C_sharp_checkbox_value=$_POST['C#_checkbox']; $HTML_checkbox_value=$_POST['HTML_checkbox']; $Cpp_checkbox_value=$_POST['C++_checkbox']; $R_checkbox_value=$_POST['R_checkbox']; $swift_checkbox_value=$_POST['swift_checkbox']; $kotlin_checkbox_value=$_POST['kotlin_checkbox']; $JS_checkbox_value=$_POST['JS_checkbox'];
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Echa un vistazo a este código:

 <form method="GET"> <input type="checkbox" value="value" name="name">checkbox label</input> <input type="submit"> </form> <?php if (isset($_GET["name"])) { echo $_GET["name"]; } ?>

Como puede ver cuando envío el formulario sin verificar, el parámetro en URI está vacío porque la casilla de verificación no está definida (utilicé el método GET)

ingrese la descripción de la imagen aquí

ingrese la descripción de la imagen aquí

Pero cuando lo reviso, puedes ver que el parámetro es name=value

ingrese la descripción de la imagen aquí

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza Report
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!