Re: [PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread Bas Jobsen

 form action=?php $PHP_SELF; ? 
 form action=?=$PHP_SELF? 
or
 form action=?php echo $PHP_SELF; ? 


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




Re: [PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread Matt

From: John Brooks [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 10:21 AM
Subject: [PHP] Problem with $PHP_SELF on PWS


 I have PHP installed on PWS running on a Windows 98SE m/c.
 When I invoke form action=action.php method=POST everything is fine
and the form data is  extracted correctly.

 When I try to embed the same script in the body of the form using
 form action=?php $PHP_SELF; ? method=POST I get HTTP Error 405
Method not allowed.

If you view source from the browser you'll see the action is empty.

Use:
form action=?php echo $_SERVER['PHP_SELF']; ? method=POST




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