<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vinay P</title>
    <description>The latest articles on DEV Community by Vinay P (@vinayprakashanalytics808).</description>
    <link>https://dev.to/vinayprakashanalytics808</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F947735%2F84f89c9f-da69-4756-97ce-a3117b368a93.jpeg</url>
      <title>DEV Community: Vinay P</title>
      <link>https://dev.to/vinayprakashanalytics808</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vinayprakashanalytics808"/>
    <language>en</language>
    <item>
      <title>Get the selected values from html file to app in flask</title>
      <dc:creator>Vinay P</dc:creator>
      <pubDate>Thu, 20 Oct 2022 07:44:56 +0000</pubDate>
      <link>https://dev.to/vinayprakashanalytics808/get-the-selected-values-from-html-file-to-app-in-flask-2m94</link>
      <guid>https://dev.to/vinayprakashanalytics808/get-the-selected-values-from-html-file-to-app-in-flask-2m94</guid>
      <description>&lt;p&gt;I have a application build in flask (sorry I have produced a piece of code below since I am not able to put entire code here).&lt;/p&gt;

&lt;p&gt;I need to get whatever is selected from dropdown. Below is the code in template.html where there is a dropdown. I have a name attribute here&lt;/p&gt;

&lt;p&gt;template.html&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;select  name="comp_select" onchange="update_selected_option_value(value)" method="POST"&amp;gt;
    {% for ticker in tickers %}&amp;lt;option value="{{ticker}}" SELECTED&amp;gt;{{ticker}}&amp;lt;/option&amp;gt;{% endfor %}
&amp;lt;/select&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;Now i am trying retrieve selected value so I am using below code&lt;/p&gt;

&lt;p&gt;`&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@app.route('/', methods=['GET','POST'])
def dropdown():   
    company_name = request.form['comp_select']
    return render_template('template.html')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;So basically i need to get selected value in company_name . But I am not able to get it. Can anyone help me what wrong I am doing?&lt;/p&gt;

</description>
      <category>flask</category>
      <category>python</category>
    </item>
    <item>
      <title>Community for help</title>
      <dc:creator>Vinay P</dc:creator>
      <pubDate>Tue, 18 Oct 2022 08:05:58 +0000</pubDate>
      <link>https://dev.to/vinayprakashanalytics808/community-for-help-2614</link>
      <guid>https://dev.to/vinayprakashanalytics808/community-for-help-2614</guid>
      <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I am new to this community. So I wanted to check if I can post my Flask code here as I am facing few issues running the application?&lt;/p&gt;

</description>
      <category>flask</category>
    </item>
  </channel>
</rss>
