If you look up 'here doc' in the manual you will see that the reference to
EOQ below is part of that, you can use whatever you like in place of EOQ, I
think your problem is that 'here doc' is not supported in php 3

Try replacing the lines

$output = <<<EOQ
<form action="$action" $attlist>
EOQ;

with

$output = print("<form action=\"$action\" $attlist>");

HTH
Paul


----- Original Message -----
From: "Darren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>

: I bought the bookMySQL/PHP Database Applications by Jay Greenspan
: and Brad Bulger, and in I discovered some code that I don't
: understand and I can't find reference to it anywhere. (in the php
: manuel, book, php website etc.) does anyone know what it means and
: if it php3 compatible.  It is used in the following code:
:
: Here tis
:
: // string start_form ([string action [, array attributes]])
:
: // This function returns an HTML <form> tag. If the first argument
: // is empty, the value of the global Apache variable SCRIPT_NAME
: // is used for the 'action' attribute of the <form> tag. Other
: // attributes for the form can be specified in the optional second
: // argument; the default method of the form is "post".
:
: // The behavior of this function on servers other than Apache is
: // not known. It's likely that it will work, as SCRIPT_NAME is
: // part of the CGI 1.1 specification.
:
: function start_form ($action="", $atts="")
: {
: global $SCRIPT_NAME;
:
: if (empty($action)) { $action = $SCRIPT_NAME; }
:
: $attlist = get_attlist($atts,array("method"=>"post"));
: $output = <<<EOQ
: <form action="$action" $attlist>
: EOQ;
: return $output;
: }


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to