Commit 11a947e8 authored by Angel Matilla's avatar Angel Matilla
Browse files

added selector for forms 6

parent 81e2dfc4
......@@ -174,24 +174,6 @@ 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 ) {
......@@ -206,8 +188,9 @@ class GEN_EU_Registration_Dashboard {
if(isset($_POST['form-id'])){
$this->form_id = $_POST['form-id'];
$data_source = $this->form_id;
$data_source = GEN_EU_Caldera_Forms_Data_Collector::get_instance($this->form_id);
echo "You have selected :" .$data_source ; // Displaying Selected Value
echo '<hr>';
}
else{
$data_source = GEN_EU_Caldera_Forms_Data_Collector::get_instance( GEN_EU_Form_Parameters::ID );
......
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