Include file error (novice).
- From: Mo <Mehile.Orloff@xxxxxxxxx>
- Date: Thu, 9 Oct 2008 14:33:14 -0700 (PDT)
I have a form which I use to get a date range for reports. I am
beginning to build many more reports than initially thought, and I use
this form in each one. I expect to manage/improve the form, so I want
to just include it from it's own file.
I want to break out of PHP for my form area (instead of having to deal
with a whole bunch of print/echo statements and the added debugging
layer), but am getting an error.
ERROR:
Parse error: syntax error, unexpected $end in /home/voyager1/
public_html/turbine/dateRange_form.inc on line 17
How do I remedy the error?
Here are the ENTIRE contents of dateRange_form.inc:
?>
<form name="dateRange" method="GET" >
<table>
<tr>
<td align="center" class="">From date:
<input name='fromDate' value='<?=date("Y-m-
d",mktime(0,0,0,date("m")-1,1,date("Y")));?>' size=15>
</td>
<td align="center" class="">To date:
<input name='toDate' value='<?=date("Y-m-
t",mktime(0,0,0,date("m")-1,1,date("Y")));?>' size=15>
</td>
<td align="center">
<input type='submit' value='Search'>
</td>
</tr>
</table>
</form>
<?PHP
.
- Follow-Ups:
- Re: Include file error (novice).
- From: Geoff Berrow
- Re: Include file error (novice).
- Prev by Date: Re: HTTP-POST simultaneous requests
- Next by Date: Re: HTTP-POST simultaneous requests
- Previous by thread: ternary operator or if() statement for default value?
- Next by thread: Re: Include file error (novice).
- Index(es):
Relevant Pages
|