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

Displaying Column Names
I have a question regarding the ability to show the column names from my table/query.
What I'm lo

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

Update not working ... please help
Hi,

I am trying to update a row using an edit form by passing id of the row .. but it is not

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

MFC GUI Programming
I am working on a project right now that requires me to create a MFC Windows GUI. Basically it need

PHP submit form script causing blank page
Im trying to submit a form using this script, however nothing shows up on the page, does anyone know

Really need helps regarding Pagination with Sort
I need someone helps regarding pagination problem...i actually want to make my page limited to let s

help removing unwanted graphic
How do I remove the small elongated rectangular shape between the "Latest post" and "

Unexpected T_Variable ?
Hi all,
I dont really know what I am doing!! I know I'm doing something wrong, and I know its on

Preg_match question
I want to use preg_match to make sure a string is always 6 characters long and only contains 0-9 and

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