[PHP] Need help with a PHP script

2002-03-03 Thread PHP

?php
if($a == 0 || $a == null) LogOn();
else if($a==1) CPMain();
function Authorize() {
  $username = $HTTP_POST_VARS['username'];
  $password = $HTTP_POST_VARS['password'];
  echo T$username$password;
}
function CPMain() {
  Authorize();
} 
function LogOn() {
  echo Please log on:;
  echo form method=\post\ 
action=\http://infinitept35com/countmein/controlphtml\;;
  echo input type=hidden name=\a\ value=\1\;
  echo table border=0trtd;
  echo Username:/tdtd;
  echo input type=text name=\username\ 
class=\form1\/td/trtrtd;
  echo Password:/tdtd;
  echo input type=password name=\password\ 
class=\form1\/td/trtrtdnbsp;/tdtd;
  echo input type=submit class=\form1\ value=\Log 
On\/td/tr/table;
}
?
I can't determine what's wrong It prints T, but nothing else!
-- 

- Roy W

-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




RE: [PHP] Need help with a PHP script

2002-03-03 Thread Douglas Maclaine-cross

echo T.$username.$password;

is PHP 2 and earlier proper syntax for PHP 3+ is

echo T+$username+$password;

or

echo T$username$password;

Doug



[PHP] Need help with a PHP script

2002-03-03 Thread PHP

?php
if($a == 0 || $a == null) LogOn();
else if($a==1) CPMain();
function Authorize() {
  $username = $HTTP_POST_VARS['username'];
  $password = $HTTP_POST_VARS['password'];
  echo T$username$password;
}
function CPMain() {
  Authorize();
} 
function LogOn() {
  echo Please log on:;
  echo form method=\post\ 
action=\http://infinitept35com/countmein/controlphtml\;;
  echo input type=hidden name=\a\ value=\1\;
  echo table border=0trtd;
  echo Username:/tdtd;
  echo input type=text name=\username\ 
class=\form1\/td/trtrtd;
  echo Password:/tdtd;
  echo input type=password name=\password\ 
class=\form1\/td/trtrtdnbsp;/tdtd;
  echo input type=submit class=\form1\ value=\Log 
On\/td/tr/table;
}
?
I can't determine what's wrong It prints T, but nothing else!
-- 

- Roy W

-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




RE: [PHP] Need help with a PHP script

2002-03-03 Thread Douglas Maclaine-cross

I can't believe I just sent this. For those who care it's the other way
around.

-Original Message-
From: Douglas Maclaine-cross 
Sent: Monday, March 04, 2002 14:08
To: 'PHP'; [EMAIL PROTECTED]
Subject: RE: [PHP] Need help with a PHP script


echo T.$username.$password;

is PHP 2 and earlier proper syntax for PHP 3+ is

echo T+$username+$password;

or

echo T$username$password;

Doug



RE: [PHP] Need help with a PHP script

2002-03-03 Thread Martin Towell

instead of $HTTP_POST_VARS, try $_POST


-Original Message-
From: PHP [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Need help with a PHP script


?php
if($a == 0 || $a == null) LogOn();
else if($a==1) CPMain();
function Authorize() {
  $username = $HTTP_POST_VARS['username'];
  $password = $HTTP_POST_VARS['password'];
  echo T.$username.$password;
}
function CPMain() {
  Authorize();
} 
function LogOn() {
  echo Please log on:;
  echo form method=\post\ 
action=\http://infinitep.t35.com/countmein/control.phtml\;;
  echo input type=hidden name=\a\ value=\1\;
  echo table border=0trtd;
  echo Username:/tdtd;
  echo input type=text name=\username\ 
class=\form1\/td/trtrtd;
  echo Password:/tdtd;
  echo input type=password name=\password\ 
class=\form1\/td/trtrtdnbsp;/tdtd;
  echo input type=submit class=\form1\ value=\Log 
On\/td/tr/table;
}
?
I can't determine what's wrong. It prints T, but nothing else!
-- 

- Roy W.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php