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
for ( $i = 00; $i < 60; $i++; ) {
echo ( "<option value="$i">:"$i"</option>" );
}
?>
I keep getting the error (on the for line)
Parse error: syntax error, unexpected ';', expecting ')'
What am I doing wrong?