javascript does not require requests to server so if you create an array of the same team names in the database in js you willl be able to provide the same data on the page without requiring the server.
i myself am learning js to fullest there are so many intersting things i just started but i can suggest that if you create an array and JS uses DOM which means that it acts upon the users actions on the website basicly when the user clicks the form or in your case the <select><option> it will generate an output without requiring the server. automaticaly that is the cool thing about javascript. the reason i want to learn it much more but everything comes in time. for example i just learned how to understand group by condition in sql and that functions such as min() max(), avg(), count(), COUNT(), sum(), are a part of group by. Even though they are not but they are IMPLICIT they do what group by does without giving the commmand to group by.
I love sql very intersting I wish I sat behind my laptop more and less drinking and chilling with the girls its just i do not have a friend that understands me in my work... sadly ... its okay though.. but the fact remains that "two minds are better than one"
if you need to talk i am in skype.... igorekastahov
P.S. $REQUEST[' '] is a superglobal which gives us the output of either $POST superglobal or $GET superglobal $GET gives you the variables you pass through the link such as ex. : http://www.website.com/index.php?number=10001
result equals to 10001 of the $_GET['number']
its an array so you must specify the name of the variabkle you are getting passed on through a link.
$_POST is an array containing everything submitted in the form for ex. :
we have the following:
<!-- in HTML -->
<form name="form_test" action="<?php echo($PHP_SELF); ?> method="post" >
<input name="fname" type="text">
<input name="lname" type="text">
<input type="submit" name="submit" value="enter data">
</form>
in the $POST array we will have $POST['fname']; $POST['lname']; we will also have the same values in $REQUEST['fname']; since the request array stores everything that comes from post and get. so... $_REQUEST['number']; will also be valid.