Page 1 of 1
Parse Error
Posted: Wed Apr 21, 2004 5:47 pm
by mike08
could someone try and help me sort this out, just really annoying me
the error is
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in C:\Program Files\Apache Group\Apache2\htdocs\shopbots\poll1\vote.php on line 72
points to this line, think it has something to do with the target
Code: Select all
echo "<font face="Verdana" size="1"><a href="".$PHP_SELF."?results=1" target="http://localhost/shopbots/admin/poll_index.php">View results</a></font>";
Posted: Wed Apr 21, 2004 5:50 pm
by feyd
Posted: Wed Apr 21, 2004 5:57 pm
by mike08
Thanks for that, that's sorted that line out.
could you check if this is correct please
Code: Select all
<form method="post" action="<?=$PHP_SELF?>" target="http://localhost/shopbots/admin/poll_index.php">
Posted: Wed Apr 21, 2004 6:00 pm
by feyd
as long as you got short tags on yep.
thanks
Posted: Wed Apr 21, 2004 6:13 pm
by mike08
can i ask what you mean by short tags on
how do i put them on. is there a setting or something, sorry im fairly new to all this.
Another quick question do these two php_auth user and php_pw - are they set anywhere, because im stuggling to get http authentication to work, the window comes up and i type in user and open but nothing happens just bounces back. Any ideas why?
$PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) {
Posted: Wed Apr 21, 2004 6:17 pm
by feyd
short tags:
<? code
<?= echo'd stuff
I don't know how the authentication user/password is set.. but I'd bet it's stored in $_SERVER.
Posted: Wed Apr 21, 2004 11:18 pm
by d3ad1ysp0rk
Feyd and phenom are late
Mike needs to learn how to make his own topic instead of jacking someone else's..
Posted: Thu Apr 22, 2004 1:06 am
by Chris Corbyn
LiLpunkSkateR, LOL

I agree!
Posted: Thu Apr 22, 2004 6:20 am
by JAM
Just a hint.
1. Try finding a editor that supports syntax highlighting. There are several threads on this forum about editors, so do a serach.
2. Use the preview, before posting PHP code in your post.
This because the syntax highlighting will reveal alot of issues in code, that is not allways visible as plain text. Just take a look at the issues above within PHP tags...
Posted: Thu Apr 22, 2004 6:27 am
by twigletmac
Topic split from another - please don't hijack threads.
Mac