<?php
?>
It is probably advisable to use proper php brackets.
You can intersperse php code and html code as necessary to complete your
full html document. ALL output of PHP is technically html, much like ASP
output.
Good luck
JEFF
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of rking@xxxxxxxxxxxxxxxxx
Sent: Tuesday, October 02, 2007 11:19 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] PHP
You can also end the php code if your needs lean more towards that.
<html>
<head>
</head>
<body>
<p>text and stuff</p>
<?php
...some code...
?>
<p>more stuff<p>
<?php
...more code...
?>
</body>
</html>
Robert
Larry Kleinman
<larry@kleinmanas To: Web Enabling the
AS400 / iSeries <web400@xxxxxxxxxxxx>
soc.com> cc:
Sent by: Subject: [WEB400] PHP
web400-bounces@mi
drange.com
10/02/2007 11:01
AM
Please respond to
Web Enabling the
AS400 / iSeries
Hi - I'm making the switch from Net.Data to PHP and have some really basic
questions. Most important, at least right now:
Net.Data allows ordinary HTML inside of a Net.Data function. For example
%HTML (S1) {
<html>
<head>
</head>
<body>
Some text here
@S1 ( )
Some more text here
</body>
%}
will display "Some text here" then call the function name S1, then display
"Some more text here"
In PHP, it looks like i have to use the Echo funciton whenever I want to do
straight HTML
<?php
Function input ( ) {
echo "
some text here
";
S1 ( )
echo "
some text here
";
}
?>
Is this correct?
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
203-255-4100
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.