Paul, You are exactly right from what I can tell. I did you you suggested and it worked! There are several of those in the document. Looked it up in the book and have a limited idea on what it is, and also learning from your example I have a better Idea. But I did a search for here docs, on the PHP site and couldn't find anything. I think I can probably figure out the other 6 or 7 in the document but I can't figure this on out.
here tis // This function returns an HTML </form> tag. function end_form () { $output = <<<EOQ </form> EOQ; return $output; } ******* I know this must be simple but I just can't get it yet. I tried experimenting and putting other code in there to replace it but nothing has worked... yet. Thanks again for the help Darren PS here is the next one in case you felt like looking at it // This function returns an HTML text input field. The default size // of the field is 10. A value and maximum data length for the field // may be supplied. function text_field ($name="", $value="", $size=10, $maxlen="") { $maxatt = empty($maxlen) ? "" : "maxlength=\"$maxlen\""; $output = <<<EOQ <input type="text" name="$name" value="$value" size="$size" $maxatt> EOQ; return $output; } P.Whiter wrote: > 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]