Commit 9629f483 authored by Angel Matilla's avatar Angel Matilla
Browse files

added selector for forms test

parent 2cec54cc
......@@ -174,6 +174,24 @@ class GEN_EU_Registration_Dashboard {
echo '<h1>GEN EU Registration Dashboard</h1>';
////
echo '<form action="#" method="post">';
echo '<select name="Color">';
echo '<option value="Red">Red</option>';
echo '<option value="Green">Green</option>';
echo '<option value="Blue">Blue</option>';
echo '<option value="Pink">Pink</option>';
echo '<option value="Yellow">Yellow</option>';
echo '</select>';
echo '<input type="submit" name="submit" value="Get Selected Values" />';
echo '</form>';
if(isset($_POST['submit'])){
$selected_val = $_POST['Color']; // Storing Selected Value In Variable
echo "You have selected :" .$selected_val; // Displaying Selected Value
}
////
echo '<form action="#" method="post">';
echo '<hr><select name="form-id">';
foreach ( Gen_EU_Form_Parameters::FORM_PICKER as $slug => $form ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment