<select name="select"> <option value="">-- select RSS</option> <option value="http://rss.cnn.com/rss/cnn_world.rss">CNN</option> <option value="http://feeds.reuters.com/Reuters/worldNews">Reuters</option> <option value="posts.json">Local File</option> </select> <input type="submit" value="Select"> </p> </form> <?php $RssClass = new RssClass(); $rssURL = $_POST['select']; if ($rssURL) { $jfo = $RssClass->RSS($rssURL); // read the title value $title = $jfo->channel->title; $link = $jfo->channel->link; $description = $jfo->channel->description; $language = $jfo->channel->language; $pubDate = $RssClass->DateFormat($jfo->channel->pubDate); $image = $jfo->channel->image->url; // copy the posts array to a php var $items = $jfo->channel->item; ?> <div class="container"> <p><img src="<?php echo $image; ?> " width = "100px"></p>