# For loop annoyances

**URL:** https://forum.kirupa.com/t/for-loop-annoyances/208553
**Category:** Uncategorized
**Created:** [November 29, 2006, 11:26pm UTC](https://forum.kirupa.com/t/for-loop-annoyances/208553 "2006-11-29T23:26:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![FrankieB](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/frankieb/32/1238_2.png) [@FrankieB](https://forum.kirupa.com/u/FrankieB)
#### Post date: [November 29, 2006, 11:26pm UTC](https://forum.kirupa.com/t/for-loop-annoyances/208553/1 "2006-11-29T23:26:18Z")

</div>

Hey guys,

I am working with a contact form, and I need a time segment in there, where it asks for a time to be picked up, such as 1:24 PM.

I want to put the secondary numbers into a for loop and have them output HTML for a select field. Here’s my code.

```php

   <?php 
        for ( $i = 00; $i < 60; $i++; ) {
                echo ( "<option value="$i">:"$i"</option>" );
        }
   ?>

```

I keep getting the error (on the for line)

```php

Parse error: syntax error, unexpected ';', expecting ')'

```

What am I doing wrong?
