need Array help


Posted on 16th Feb 2014 07:03 pm by admin

This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Giants"
$teamname[3] = "White Sox"
$teamname[4] = "Cubs"
$teamname[5] = "Cubs"
Interface: Number 1 to 5;
Output: "The [name] won World Series number .

This is what I have so far. <?
$array=array('Red Sox', 'Giants', 'White Sox','Cubs' ,'Cubs');



print_r($array );
echo "
";
foreach( $array as $key => $value){echo $value ." "; }















?>

<form method = "post" action = "">
<input type = "Submit" value = "Who won the series?" />
</form>

I'm not sure what to do next.

No comments posted yet

Your Answer:

Login to answer
248 Like 38 Dislike
Previous forums Next forums
Other forums

Does deleting the spmlog directory critical?
Hi Everyone,

Please, hope you could help me. We're having problems with the SAP backup. I

How to show more than 1 users with this code...
Hello,
i have a table that shows users only if I, as Administrator, want to be shown. But its sho

PHP mail() rejected by SMTP
I'm currently working on a newsletter application which is installed on a windows 2003 server runnin

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

Hyperlink in PHP to MySQL record
Hello,

I am having trouble as i am new to php. I have connected to the database and I have di

1,000 select boxes with 100 options?!
I have 1 drop down select box with 1,000 options.


In some case, there will be 100+ of the

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

with clause
hi all, i have a big query that usually access the same table more than once. for example, i have s

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

Including calander to page - will not show other months than current??
im trying to add an existaing calander onto a profile page by using Code: <?php include "

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash