Re: php conditionals?
"Jacob Kruger" <[email protected]>
| Newsgroups | gmane.comp.php.windows |
|---|---|
| Message-ID | <004001cb5494$e3255a00$6401a8c0@spaceque68db8d> |
The <form /> tag is being rendered between the { and } tags inside PHP tags
related to the conditional statement, so if the conditional statement isn't
true, even static HTML inbetween them won't show up.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: "stao" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 15, 2010 5:48 AM
Subject: [PHP-WIN] php conditionals?
> Hi,
>
> I saw php usage like below somewhere. I kind of wonder why the page does
> not display anything. in my understanding, php only interprets what is
> inside <?php> <?>. Since the form is outside of any php tags, the form
> should be displayed?
>
> Thank you for any helps.
> <html>
>
> <body>
>
> <?php
>
> if (0)
>
> {
>
> ?>
>
> <form action="test.php" method="post">
>
> <input type="text" name="name">
>
> <input type="submit" name="submit" value="EnterYourName">
>
>
> </form>
>
>
> <?php
>
> }
>
> ?>
>
> </body>
>
> </html>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 5451 (20100914) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5451 (20100914) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php