Re: "EOQ" what does it mean??
| From: | p.whiter | Date: | Sun, 04 Nov 2001 02:07:24 +0000 |
| Subject: | Re: "EOQ" what does it mean?? | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13982@lists.php.net to get a copy of this message | ||
If you are running windows, I suggest you download the .chm version of the
php manual, great for easy searching and bookmarking pages etc.
http://uk2.php.net/distributions/manual/manual-en.chm
To answer your question, the first piece of code will be, replace:
$output = <<<EOQ
</form>
EOQ;
with
$output = print("</form>");
and the next replace:
$output = <<<EOQ
<input type="text" name="$name" value="$value"
size="$size" $maxatt>
EOQ;
with
$output =print("<input type=\"text\" name=\"$name\"
value=\"$value\"
size=\"$size\" $maxatt>");
When using the print statement you must remember to escape all " within the
parenthesis with \
Paul
----- Original Message -----
From: "Darren" <Darren@dixondigital.com>
: 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;
: }
: