PHP include help!

I GET AN ERROR LIKE

Warning: include(…\menu egister.php) [function.include]: failed to open stream: Invalid argument in C:\Abyss Web Server\htdocs\members\register.php on line 26

Warning: include() [function.include]: Failed opening ‘…\menu egister.php’ for inclusion (include_path=’.;C:\php5\pear’) in C:\Abyss Web Server\htdocs\members\register.php on line 26


MY CODE IS

<?php require_once('common.php'); if (isset($_POST['submitBtn'])){ // Get user input $username = isset($_POST['username']) ? $_POST['username'] : ''; $password1 = isset($_POST['password1']) ? $_POST ['password1'] : ''; $password2 = isset($_POST['password2']) ? $_POST ['password2'] : ''; // Try to register the user $error = registerUser($username,$password1,$password2); } ?> Rawhi M - Register

Register

<?php include("..\menu\register.php"); ?>
<?php if ((!isset($_POST['submitBtn'])) || ($error != '')) {?>
Register user
 
Username:
Password:
Confirm password:
<?php } if (isset($_POST['submitBtn'])){ ?>
  <div class="caption">Registration result:</div>
  <div id="icon2">&nbsp;</div>
  <div id="result">
    <table width="100%"><tr><td><br/>
<?php if ($error == '') { echo " User: $username was registered successfully!

"; echo ' You can login here'; } else echo $error; ?>




<?php } ?>
Rawhi M

Appreciate any help!

Sponsor our Newsletter | Privacy Policy | Terms of Service