Getting the URL
| From: | Todd Cary | Date: | Mon, 16 Oct 2000 18:34:23 +0000 |
| Subject: | Getting the URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20413@lists.php.net to get a copy of this message | ||
At the top of the script, I have the following code. My problem is how
to get the URL. Is the URL root available in IIS?
<?php
$IsGood = 1;
$ValErrors = array();
$clFirst = $HTTP_GET_VARS[clFirst];
$sessionid = $HTTP_GET_VARS[SID];
$CancelBtn = $HTTP_GET_VARS[CancelBtn];
//$url = ???????????
//How can I get the URL root below so that it is not hard coded??
if (!empty($CancelBtn)) {
header("Location:
http://208.205.172.137/test/php/FloatOGraph.php");
exit;
};
if (empty($sessionid)) {
$IsGood = 0;
};
if (empty($clFirst)) {
$IsGood = 0;
$ValErrors[] = "Please fill in First name field";
};
//More validation here!!
if ($IsGood) {
header("Location: http://208.205.172.137/test/php/ThankYou.php");
exit;
};
require 'functions.php';
?>
Many thanks!!
Todd
--
Todd Cary
Ariste Software
todd@aristesoftware.com