# Getting Weather from bbc.co.uk

**URL:** https://forum.kirupa.com/t/getting-weather-from-bbc-co-uk/223448
**Category:** flash
**Created:** [April 22, 2007, 10:31pm UTC](https://forum.kirupa.com/t/getting-weather-from-bbc-co-uk/223448 "2007-04-22T22:31:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![c2k6](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@c2k6](https://forum.kirupa.com/u/c2k6)
#### Post date: [April 22, 2007, 10:31pm UTC](https://forum.kirupa.com/t/getting-weather-from-bbc-co-uk/223448/1 "2007-04-22T22:31:06Z")

</div>

Hey guys I rarely speak on the forums lol so Im a bad member although i did take part in the giant picture chain thread! anywys I would like to implement a search feature i.e. a postcode box where a user inserts there postcode clicks a submit button then is sent to the corrosponding page on the bbc!

the search box is on the bottom right hand side of the [www.bbc.co.uk/weather](http://www.bbc.co.uk/weather) a view source will tell you what you need to know I belive this is the code but you can go to the site to see more.

```auto
<td bgcolor="#99cc66" valign="top" colspan="3" rowspan="3" class="searchbox"><div style="padding:0px; margin:4px;" class="display">
  <form name="search" method="get" action="/cgi-perl/weather/search/new_search.pl"><h2 style="padding:0px; margin:0px; color:#ffffff;"><label for="search_query">Search</label></h2><strong style="color:#ffffff;">for a new 5 day forecast</strong><br />
 <div style="padding:0px; margin:0px; float:right;"><input type="image" value="Submit" src="/weather/images/gui/gr_but_submit_5day.gif" width="26" height="21" id="submit" name="submit" alt="GO" border="0" tabindex="3" /></div><input type="text" name="search_query" id="search_query" size="8" title="To search for a five day forecast please enter your location name or postcode and click GO" style="width:125px;" accesskey="8" tabindex="2" />
 <br clear="all" /></form>

```

I’m learning snippets of flash all the time and working this out would really aid in understanding more of how flash handles things!

I have an input box and button allready setup I just need to work out what code to insert in the on (release) { } section and what var’s to call the input box and if anything else is need to process this I assume what they insert in input box on the bbc gets sent using the get command to a search then return something I can use .  
I want the user to open the [bbc.co.uk](http://bbc.co.uk) page corresponding to the postcode seperatley (\_blank)

Many thanks if any Kirupians can point me in the right direction and explain along the way! cheers!  
Adam
