Re: "EOQ" what does it mean??

From: Date: Sat, 03 Nov 2001 21:01:38 +0000
Subject: Re: "EOQ" what does it mean??
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13975@lists.php.net to get a copy of this message
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" <Darren@dixondigital.com> To: <php-db@lists.php.net> : 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; : }

« previous php.db (#13975) next »