Re: echo other way to output a constant? [message #169507 is a reply to message #169488] |
Wed, 15 September 2010 18:20 |
bobmct
Messages: 16 Registered: September 2010
Karma:
|
Junior Member |
|
|
On Wed, 15 Sep 2010 08:00:06 +0100, Denis McMahon
<denis(dot)m(dot)f(dot)mcmahon(at)googlemail(dot)com> wrote:
> echo <<<_END
> <html><head><title>PHP Form Upload</title></head><body>
> <form method='post' action='UploadFile2.php' enctype='multipart/form-data'>
> <!-- MAX_FILE_SIZE must precede the file input field -->
> <input type="hidden" name="MAX_FILE_SIZE" value="
> _END;
> echo _MAXFILESIZE;
> echo <<<_END
> " />
> Select a JPG, GIF, PNG or TIF File:
> <input type='file' name='filename' size='60' />
> <br/><input type='submit' value='Upload' /></form>
> _END;
>
> Rgds
>
> Denis McMahon
How about something as simple as:
$MAX_FILE_SIZE = 300;
then in the html output:
<input type="hidden" name="MAX_FILE_SIZE" value="$MAX_FILE_SIZE">
|
|
|