Question: Im trying to make a game for the iPhone that has background music.
So this is how it is laid out:
I have a main menu with music running in the background via AVAudioPlayer (I have made a custom method that gets called every time the view loads).
I have this about button, when you press it it "addSubview:aboutView" s and it does that fine, but then when I press the back button which "addSubview:mainView" s it goes back to the main menu, but plays the same music track, on top of the one thats already playing.
I have tried making a int that ++s every time the viewDidLoad is called thats in an if (someInt > 1){} but that int forgets its value every time, so it still duplicates the music.
Help!
I know this is simple, but I cannot seem to work it out, its just one of those days.

Answer: 
How about this:

```
<label> Range from <input name='min_value'> </label>
<label> to <input name='max_value'> </label>

```
I see many answers saying it is wrong to put 2 inputs inside a label. This is actually a wrong statement in html5. The standard explicitly allow it: <http://www.w3.org/TR/html5/forms.html#the-label-element>

```
<label id='dobRange'>DOB between</label>
<input type='text' id='start' aria-labelledby='dobRange' />
<input type='text' id='end' aria-labelledby='dobRange' />

```

in haml:

```
= f.label :dob_range
= f.search_field :dob_gteq, 'aria-label': 'dob_range'
= f.search_field :dob_lteq, 'aria-label': 'dob_range'

```