if inside an echo.
- From: ross@xxxxxxxxxxxxxx ("Hulf")
- Date: Tue, 31 Jul 2007 12:10:32 +0100
I am outputting a selectbox and want to do the follwoing. How can I add the
IF statement inside the the echo?
for ($value = 0; $value <= 2000; $value += 100) {
echo "<option value=\"$value\" if ($min_rent==$value) {echo
selected="selected" }> $value</option>";
}
.
- Follow-Ups:
- Re: [PHP] if inside an echo.
- From: Neil Freeman
- Re: if inside an echo.
- From: Al
- Re: [PHP] if inside an echo.
- From: "Alan Milnes"
- RE: [PHP] if inside an echo.
- From: "Edward Kay"
- Re: [PHP] if inside an echo.
- Prev by Date: Re: [PHP] PHP and Java: accessing Java classes from PHP
- Next by Date: Re: [PHP] Includes eating up my time
- Previous by thread: Re: [PHP] Includes eating up my time
- Next by thread: RE: [PHP] if inside an echo.
- Index(es):
Relevant Pages
|