?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Script shows blank page
Author:??(---.ior.navy.mil)
Date:???03-22-03 08:59

This script just shows a blank page? Any thoughts?

session_start();
include( "EnomInterface_inc.php" );
include( "EditFns_inc.php" );

$cTld = $HTTP_POST_VARS[ "sldtld" ];
$cSld = $HTTP_POST_VARS[ "sldtld" ];
$cTld = fnStripTLD( $cTld );
$cSld = fnStripSLD( $cSld );

// Create URL Interface object
$Enom = new CEnomInterface;

$Enom->AddParam( "uid", $username );
$Enom->AddParam( "pw", $password );

$Enom->AddParam( "tld", $cTld );
$Enom->AddParam( "sld", $cSld );

// Validate the password
$Enom->AddParam( "domainpassword", $HTTP_POST_VARS[ "password" ] );
$Enom->AddParam( "command", "validatepassword" );
$Enom->DoTransaction();

// Check if there were errors
if ( $Enom->Values[ "ErrCount" ] == "0" ) {
// The password is OK

// Set up session vars
session_register( "LoggedIn" );
session_register( "tld" );
session_register( "sld" );

$LoggedIn = 1;
$tld = $cTld;
$sld = $cSld;

// Redirect to domain administration page
header ("Location: DomainMain.php");
exit;
} else {
?>




Uh oh! That password was not valid.Values[ "Err1" ]}";?>
Domain:??">
Password:??




}
?>
------------------------------------------------------------
Below is also a script that is similur but is working fine;
-------------------------------------------------------------
session_start();
include( "EnomInterface_inc.php" );
include( "EditFns_inc.php" );

$cTld = $HTTP_POST_VARS[ "sldtld" ];
$cSld = $HTTP_POST_VARS[ "sldtld" ];
$cTld = fnStripTLD( $cTld );
$cSld = fnStripSLD( $cSld );

// Create URL Interface object
$Enom = new CEnomInterface;

$Enom->AddParam( "uid", $username );
$Enom->AddParam( "pw", $password );

$Enom->AddParam( "tld", $cTld );
$Enom->AddParam( "sld", $cSld );

// Validate the password
$Enom->AddParam( "domainpassword", $HTTP_POST_VARS[ "password" ] );
$Enom->AddParam( "command", "validatepassword" );
$Enom->DoTransaction();

// Check if there were errors
if ( $Enom->Values[ "ErrCount" ] == "0" ) {
// The password is OK

// Set up session vars
session_register( "LoggedIn" );
session_register( "tld" );
session_register( "sld" );

$LoggedIn = 1;
$tld = $cTld;
$sld = $cSld;

// Redirect to domain administration page
header ("Location: DomainMain.php");
exit;
} else {
?>



Welcome to Bob's Resources Domain Name manager, Zero-Bull.com































?User??Log-in

















Uh oh! That password was not valid
Values[ "Err1" ]}";?>

Domain:?? ">
Password:??
?





}
?>




----------------------------------------------------------------

All I did was make a few changes and it works no longer. The Header tags are in the header.php page and the closing tags are in the footer.

Go to Top??|??Go to Topic??|??Threaded View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??

Provided By
Phorum