PDA

View Full Version : POST question


BroChris
01-15-2003, 08:22 PM
Ok, I just totally changed my question (and thus the subject as well).

My client's host doesn't have a specification for a SCRIPT_URL, is there something else that they do have that does the same thing? Here's their info: http://www.1pulse.com/phpinfo.php

Hmmm....maybe I'm just not calling for it correctly. Here's what I have in my document:
<?php print($_SERVER["SCRIPT_URL"]); ?>
What am I doing wrong? I know they've specified a REMOTE_ADDR (I see it on the info page), but when I try that, nothing happens either. I'm so confused.

firepages
01-15-2003, 09:33 PM
I have not heard of the server variable SCRIPT_URL ? , perhaps

PHP_SELF or SCRIPT_FILENAME are what you want ??

either way your host has 4.06 which is a little out of date ;) $_POST, $_SERVER etc wont work (>=PHP4.1 required), you will need to use $HTTP_POST_VARS & $HTTP_SERVER_VARS etc...


<?
while(list($key,$var)=each($HTTP_SERVER_VARS)){
echo "$key , $var<br />\n";
}
?>

BroChris
01-15-2003, 09:59 PM
thanks for the quick responce. helped a lot.