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
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
Still should be able to use the \" double quotes.
echo (" 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 ab
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 f
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] Ima
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
Errr $HTTP_POST_FILES is not superglobal (am I wrong?)
$_FILES or specify global $HTTP_POST_FILES
Hans
Craig Hoffman wrote:
function display_edit_bio($user_id)
{
if($_POST['postback_bio'])
{
include "include/dbadmin.php";
//image uploader
$uploa
esult = mysql_query($query, $db) or ($msg);
}
?>
__
Craig Hoffman
iChat: m0untaind0g
__
On Apr 30, 2004, at 9:17 AM, Hutchins, Richard wrote:
Craig,
Where is the code that actually handles the image upload? Is it in
/~
ellelid
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] Image / file uploader
>
>
> No problem - Here you go. Thanks - CH
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang="en&qu
No problem - Here you go. Thanks - CH
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
eClimb Media and RaceLogix Traininglog
Welcome to Training
log
Home
Login
Mailin
> Here you go: I mostly echo out the HTML. I have included the entire
> form here.
> Thanks - CH
>
> echo (" encType='multipart/form-data'>");
> echo (" ...
If you could send the actual resulting HTML that is echoed by your
script, that would be more helpful in diagnosin
Here you go: I mostly echo out the HTML. I have included the entire
form here.
Thanks - CH
echo ("");
echo ("
Name:
$row[name]");
echo ("");
echo ("");
if ($row["photo_name"] != '') {
echo (" ");
} else {
$photo_na
> 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
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:
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 run
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 try...
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. W
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 ("");
__
Craig Hoffman - eClimb Media
v: (847) 644 - 8914
f: (847) 866 - 1946
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]\" et
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:
C
Do this:
echo (" ");
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:
> I have a script where it uploads a image to directory. I have used
> the sc
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 bec
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 ("
Any more thoughts?
CH
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 s
24 matches
Mail list logo