Identificarse | Registrarse | FAQ
Anonymous

radio-button

+ Publicar una respuesta

4 mensajes Página 1 de 1


radio-button

por lacroixz » Sab Nov 20, 2010 6:47 pm

Hello there,

For some reason my radio-button doesn't 'uncheck'.
Código: Seleccionar todo
<input type="radio" name="deheer" value="deheer"> Dhr.
<input type="radio" name="mevrouw" value="mevrouw"> Mvr.


Does anybody know how to solve this, since only 'one' (1) option is possible.

Greetings, help will be appreciated!
Avatar de Usuario

lacroixz

  • Mensajes: 74
  • Registrado: Mié Oct 27, 2010 9:26 pm

Re: radio-button

por HTML.net » Dom Nov 21, 2010 8:50 am

The radio-buttons should have the same name (but different values):

Código: Seleccionar todo
<input type="radio" name="radio1" value="deheer"> Dhr.
<input type="radio" name="radio1" value="mevrouw"> Mvr.


- Andreas, HTML.net
Avatar de Usuario

HTML.net
Site Admin

  • Mensajes: 1194
  • Registrado: Sab Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: radio-button

por lacroixz » Dom Nov 21, 2010 4:38 pm

I've got a list now instead, but still thanks.
But I've got another question, how can I mail the values of checkboxes?

For example here: http://lacroixz.comuv.com/offerte-aanvragen.php
If you fill in everything it will mail everything, but I still have to fix that it sends the checkbox information aswell.
Hope u can help me!

Greetings.
Avatar de Usuario

lacroixz

  • Mensajes: 74
  • Registrado: Mié Oct 27, 2010 9:26 pm

Re: radio-button

por lacroixz » Dom Nov 21, 2010 4:50 pm

Dienst01: </br> <? echo($_REQUEST['dienst01'])?> <br/></br>
Dienst02: </br> <? echo($_REQUEST['dienst02'])?> <br/></br>

$email_message .= "Dienst01: ".clean_string($dienst01)."\n";
$email_message .= "Dienst02: ".clean_string($dienst02)."\n";

$dienst01 = $_POST['dienst01'];
$dienst02 = $_POST['dienst02'];

!isset($_POST['dienst01']) ||
!isset($_POST['dienst02']) ||

Didn't work!

Fixed!
Avatar de Usuario

lacroixz

  • Mensajes: 74
  • Registrado: Mié Oct 27, 2010 9:26 pm


+ Publicar una respuesta

Página 1 de 1