I'm coding an rss feed widget for an organisation which allows admin users to easily select from a drop down list of different RSS feeds from that organisation and display them via a widget. The code for the drop down is below, and works fine:
<p>RSS Feed: <select name="<?php echo $this->get_field_name( 'rss_feed' ); ?>" > <option value="http://www.firstrsssfeedinlist.org/rss/index.asp" <?php selected( $rss_feed, 1 ); ?>>Latest news</option>
and so on..
However, what i want to to do is to set the widget title based on which RSS feed they select from the drop down menu, rather than allowing them to set their own custom title. Does anyone know how I'd go about achieving this? thanks so much!