PHP קוד:
<FORM name ="form1" method ="post" action ="radioButton.php">
<Input type = 'Radio' Name ='gender' value= 'male'>Male
<Input type = 'Radio' Name ='gender' value= 'female'>Female
<Input type = "Submit" Name = "Submit" VALUE = "Edit">
</FORM>
radioButton.php
PHP קוד:
<?PHP
if (isset($_POST['Submit'])) {
$selected_radio = $_POST['gender'];
if ($selected_radio == 'male') {
echo "Your male";
}
else if ($selected_radio == 'female') {
echo "Your female";
}
}
?>
ךא הצלחתי לעשות דבר דומה עם תיבות סימון..וכל הקטוע של המסד..
איך אני יכניס..כי אני גם רוצה שאני ישלוט על ההוצאה..
כי כל דבר במקום אחר בדף..
תודה.