Jump to content

Choices


ki

Recommended Posts

Your html form will have an id/name value attached to the select...or at least it should have.

 

<select name="mynameforthisselect">

 

Now to get the values you simpley use

 

if (isset($selectvalue=$_POST['mynameforthisselect'])

    {

    //do this

    }

    else

    {

    //do that

    }

 

Link to comment
https://forums.phpfreaks.com/topic/40537-choices/#findComment-196203
Share on other sites

the same rule applys.  you should have a name for your radio group.  ie

 

<input type="radio" name="radioGroup1" value="option1" />

<input type="radio" name="radioGroup1" value="option2" />

<input type="radio" name="radioGroup1" value="option3" />

 

PHP

 

if (isset($selectvalue=$_POST['radioGroup1'])

    {

    echo $_POST['radioGroup1'];

    }

    else

    {

    //do that

    }

 

Link to comment
https://forums.phpfreaks.com/topic/40537-choices/#findComment-196305
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.