Try using the following:
$_SERVER[PHP_SELF]
Mainly, get rid of the quotes inside the brackets. Usually this error
'T_String' generally occurs when you have quotes ( or ') where they
shouldn`t be.
Give it a try if that thing still troubles you...
Good luck
Craig Hoffman wrote:
Sorry to be
I think you need the quotes: $_SERVER['PHP_SELF']
Try using the following:
$_SERVER[PHP_SELF]
Mainly, get rid of the quotes inside the brackets. Usually this error
'T_String' generally occurs when you have quotes ( or ') where they
shouldn`t be.
Give it a try if that thing still troubles
On 30 April 2004 01:10, Craig Hoffman wrote:
When I put single quotes in the PHP_SELF and I get this error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
and I can't use double quotes because its in an echo statement. What
This is really becoming an irritating small bug. I tried the curly
brackets and the photo name still does not show up when I echo out the
query. Everything else about the script works fine. Why does PHP
choke on forms that submit files to themselves? I am slowly running
out things to
Craig Hoffman wrote:
This is really becoming an irritating small bug. I tried the curly
brackets and the photo name still does not show up when I echo out the
query. Everything else about the script works fine. Why does PHP choke
on forms that submit files to themselves? I am slowly
Hans,
Thanks Hans. I tried what your suggested and still no luck.
__
Craig Hoffman - eClimb Media
v: (847) 644 - 8914
f: (847) 866 - 1946
e: [EMAIL PROTECTED]
w: www.eclimbmedia.com
_
On Apr 30, 2004, at 7:57 AM, Hans Lellelid wrote:
Thanks Hans. I tried what your suggested and still no luck.
What does the actual HTML form look like?
Chris
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here you go: I mostly echo out the HTML. I have included the entire
form here.
Thanks - CH
echo (form method='post' action='{$_SERVER['PHP_SELF']}'
encType='multipart/form-data');
echo (table border='0' cellpadding='5' width='500' cellspacing='0'
id='result_table'
tr
Here you go: I mostly echo out the HTML. I have included the entire
form here.
Thanks - CH
echo (form method='post' action='{$_SERVER['PHP_SELF']}'
encType='multipart/form-data');
echo (table border='0' cellpadding='5' width='500'
...
If you could send the actual
No problem - Here you go. Thanks - CH
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
titleeClimb Media and RaceLogix Traininglog/title
meta
PROTECTED]
Subject: Re: [PHP-DB] Image / file uploader
No problem - Here you go. Thanks - CH
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
handles the image upload? Is it in
/~choffman/www/mtrain/client_profile.php? If so, can you post that too?
Rich
-Original Message-
From: Craig Hoffman [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 10:08 AM
To: Hans Lellelid
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Image / file
That worked! Han's and everyone else thank you very much. I owe
everyone who helped out a beer. ;)
Thanks CH
__
Craig Hoffman - eClimb Media
v: (847) 644 - 8914
f: (847) 866 - 1946
e: [EMAIL PROTECTED]
w: www.eclimbmedia.com
_
On
Jinkeys! I had a hunch the problem was with that upload script. Nice catch,
Hans!
Rich
-Original Message-
From: Craig Hoffman [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 10:41 AM
To: Hans Lellelid
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Image / file uploader
does it puke when its not using _self?
Craig Hoffman wrote:
This is really becoming an irritating small bug. I tried the curly
brackets and the photo name still does not show up when I echo out the
query. Everything else about the script works fine. Why does PHP choke
on forms that submit
I think you want single quotes around PHP_SELF.
$_SERVER['PHP_SELF']
I have a script where it uploads a image to directory. I have used
the script several times and it works when I send the form to another
page. The problem is I have changed the form to submit to itself and I
can't seem
When I put single quotes in the PHP_SELF and I get this error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
and I can't use double quotes because its in an echo statement. What
am I missing?
echo (form method='post'
Change to double quotes for the HTML portion.
action=\$_SERVER['PHP_SELF']\
When I put single quotes in the PHP_SELF and I get this error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
and I can't use double quotes because
Do this:
echo ( form method='post' action='.$_SERVER[PHP_SELF].'
encType='multipart/form-data');
PHP doesn't handle array's well in echo statements, so you have to stop the
echo, concat the array, and then continue the echo.
-Micah
On Thursday 29 April 2004 04:46 pm, Craig Hoffman wrote:
Sorry to be a pest but I tried that. It giving me the same error.
__
Craig Hoffman - eClimb Media
v: (847) 644 - 8914
f: (847) 866 - 1946
e: [EMAIL PROTECTED]
w: www.eclimbmedia.com
_
On Apr 29, 2004, at 7:10 PM, Daniel Clark wrote:
Craig Hoffman wrote:
Sorry to be a pest but I tried that. It giving me the same error.
__
Change to double quotes for the HTML portion.
action=\$_SERVER['PHP_SELF']\
You'll find that the ultimate correct form is echo etcetc
action=\$_SERVER[PHP_SELF]\
Fellows, thanks for helping. But still no luck. The error is gone, but
the image / file is still not showing up in the query. What else I can
provide to help trouble shoot this?
echo (form method='post' action='.$_SERVER[PHP_SELF].'
encType='multipart/form-data');
22 matches
Mail list logo