yachile 0 Newbie Poster

i already finished my diagram but i want see if others have better ideas, thats all

yachile 0 Newbie Poster

what's the best diagram for this environment:
- The main router will route between three networks: A DMZ, a “client” network and the Internet. On the DMZ, traffic should be authorized only to and form published services (see servers section). The DMZ should be able to initiate dialog with machines on the client network. The client network should be subdivided in two 2 VLANs.It has three switches, with redundant links. VLAN configuration should be pushed from a single point.
- Servers are:
• Web server
• DNS Server
• File sharing DFS service
• Exchange mail server
- need to install an Active Directory domain controller. This server doesn’t need to run on top of the Hyper-­‐V cluster. The file sharing service should be redundant (two or more machines) and available using a single URI. You get to decide which servers must be on the DMZ.

yachile 0 Newbie Poster

is it better to put my Active Directory in DMZ!!
hope someone reply as soon as possible

yachile 0 Newbie Poster

it's <textarea name="message"></textarea>

yachile 0 Newbie Poster
<form action="#" method="post" id="cform" name="cform">
              <ul id="homehireus" class="hireform contactform">
                <li>
                  <label>Name:<span class="required">*</span></label>
                  <input name="name" id="name" type="text" value="" tabindex="1">
                </li>
                <li>
                  <label>Phone:</label>
                  <input name="phone" id="phone" type="text" value="" tabindex="3">
                </li>
                <li>
                  <label>Email:<span class="required">*</span></label>
                  <input name="email" id="email" type="text" value="" tabindex="2">
                </li>
                <li>
                  <label>Subject:<span class="required"></span></label>
                  <input name="subject" id="subject" type="text" value="" tabindex="4">
                </li>
                <li>
                  <input type="button" id="send-message" value="Send Details To Wee" tabindex="6">
                  <div id="output" class="contactpage-msg"></div>
                </li>
                <li>
                  <label>Message:<span class="required"></span></label>
                  <textarea name="message" id="message" tabindex="5"></textarea>
                </li>
              </ul>
            </form>
yachile 0 Newbie Poster

i fixed the name now, but for the message it shows me "Message = Email = test@hotmail.com", but dont show me the my message

yachile 0 Newbie Poster

hi, hope if someone can help me, my conact form works and i receive the mail, but it shows me just the email and phone
this is a test:

Email = test@live.fr
Name =
Phone = 06 09 56 89 45
Message = Email = forza-ayoub@live.fr
Name =
Phone = 06 09 56 89 45

form code is from page html, and the 2nd code is the php page

<form action="#" method="post" id="cform" name="cform">
              <ul id="homehireus" class="hireform contactform">
                <li>
                  <label>Name:<span class="required">*</span></label>
                  <input name="name" id="name" type="text" value="" tabindex="1">
                </li>
                <li>
                  <label>Phone:</label>
                  <input name="phone" id="phone" type="text" value="" tabindex="3">
                </li>
                <li>
                  <label>Email:<span class="required">*</span></label>
                  <input name="email" id="email" type="text" value="" tabindex="2">




<?php 

// EDIT THE FOLLOWING LINE BELOW AS REQUIRED

$send_email_to = "admin@egrappler.com";

function send_email($name,$email,$phone,$subject,$message)
{
  global $send_email_to;  
  if($message=='message')$message='';
  $headers = "MIME-Version: 1.0" . "\r\n";
  $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
  $headers .= "From: ".$email. "\r\n";
  $message = "<strong>Email = </strong>".$email."<br>";  
  $message .= "<strong>Name = </strong>".$name."<br>";     
  $message .= "<strong>Phone = </strong>".$phone."<br>";     
  $message .= "<strong>Message = </strong>".$message."<br>";
  @mail($send_email_to, $subject, $message,$headers);
  return true;
}

function validate($name,$email,$phone,$message,$subject)
{
  $return_array = array();
  $return_array['success'] = '1';
  $return_array['name_msg'] = '';  
  $return_array['email_msg'] = '';
  $return_array['phone_msg'] = '';
  $return_array['message_msg'] = '';
  $return_array['subject_msg'] = '';

 if($email == '')
  {
    $return_array['success'] = '0';
    $return_array['email_msg'] = 'email is required';
  }
  else
  {
    $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
    if(!preg_match($email_exp,$email)) {
      $return_array['success'] = '0';
      $return_array['email_msg'] = 'Enter valid email.';  
    }
  }

  if($name == '')
  {
    $return_array['success'] = '0';
    $return_array['name_msg'] = 'Name is required';
  }
  else
  {
     $string_exp = "/^[A-Za-z .'-]+$/";
    if (!preg_match($string_exp, $name)) {
      $return_array['success'] …
yachile 0 Newbie Poster

done it works, thx

yachile 0 Newbie Poster

the same problem even i use test@powerm.ma

yachile 0 Newbie Poster

it's just to test my contact form, but it's a valid mail

yachile 0 Newbie Poster

yes it's a valid email

yachile 0 Newbie Poster

there are no errors but when i check my box i dont find the email

yachile 0 Newbie Poster
<?php
    if (empty($_POST) === false) {
        $errors = array();

        $name       = $_POST['name'];
        $email      = $_POST['email'];
        $message    = $_POST['message'];

        if (empty($name) === true || empty($email) === true || empty($message) === true) {
            $errors[] = 'Name, email and message are required';
        }else{
            if (filter_var($email,FILTER_VALIDATE_EMAIL) === false) {
                $errors[] = 'That\'s not a valid email';
            }

            if (ctype_alpha($name) === false) {
                $errors[] = 'Name must only contain letters';
            }
        }

        if (empty($errors) === true){
            mail('test.powerm.ma', 'Contact form', $message, 'From: ' . $email);
            header('Location: index.php?sent');
            exit();
        }
    }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>

    <?php 
        if (empty($errors) === false) {
            echo '<ul>';
            foreach($errors as $errors) {
                echo '<li>', $errors, '</li>';
            }
            echo '</ul>';
        }
    ?>
    <form action="" method="post">
        <p>
            <label for="name">Name:</label><br>
            <input type="text" name="name" id="name" <?php if(isset($_POST['name']) === true) {echo 'value=', strip_tags($_POST['name']), '"'; }?>>
        </p>

        <p>
            <label for="email">Email:</label><br>
            <input type="text" name="email" id="email" <?php if(isset($_POST['email']) === true) {echo 'value=', strip_tags($_POST['email']), '"'; }?>>
        </p>

        <p>
            <label for="message">Message:</label><br>
            <textarea name="message" id="message"><?php if(isset($_POST['message']) === true) {echo  strip_tags($_POST['message']); }?></textarea>
        </p>

        <p>          
            <input type="submit" value="Submit" />
        </p>
    </form>
</body>
</html>
yachile 0 Newbie Poster

i dont recieve any mail in my box, can someone help and tell me whats the problem!!

yachile 0 Newbie Poster

it's like d713e38281718ed2d493fdcfa44dac7e
if you have login-logout form plz send it to me

yachile 0 Newbie Poster

no it doesnt work and im sure i work with md5 in database

yachile 0 Newbie Poster

hey force if you have login-logout form send it to me that will be better

yachile 0 Newbie Poster

it displays Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\test\login.php on line 14
Username or password

yachile 0 Newbie Poster

no it displays "Your username/password did not match those on the system!" even if the info are correct

yachile 0 Newbie Poster

the same problem it displays Your username/password did not match those on the system! even if they are correct

yachile 0 Newbie Poster

both whene i use right and wrong info it displays "Username or password is wrong"

yachile 0 Newbie Poster

i want if the username and password are correct go to index page, but if the password or username is correct display "password or username is wrong"

yachile 0 Newbie Poster

thx phorce it works, but it display the same message even if i use the correct username and password

yachile 0 Newbie Poster

i'm beginner, so how can i run the query!!! can you correct this code plz!!!

yachile 0 Newbie Poster

hi, i have a problem in login form, whene i try to see if it works, but there is an error,
so hope if you can help me and thx ;)
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\test\login.php on line 11
Username or password

<?php
if(isset($_POST['user']))
{
$user = $_POST['user'];
$pass= md5 ($_POST['pass']);

$con = mysql_connect("localhost", "root", "");
if(!$con){die('could not connect: '.mysql_ereor());}

mysql_select_db("test", $con);
if(mysql_num_rows(mysql_query("SELECT * FROM users where username='$user' AND password='$pass' ")))
{
$result = mysql_query("SELECT * FROM users WHERE username = '$user' AND password = '$pass'");
while($row = mysql_fetch_array($result))
{
	$expire = time()+60*60*24*30;
	setcookie("uid", $row['uid'], $expire);
	echo "Logged in. as <b>".$row['username']."</b>";
	}

}else{
		echo"<b>Username or password</b><br><br>";
}
mysql_close($con);
}
echo "<form method='post'>
Username:<input type='text' name='user'><br>
Password:<input type='password' name='pass'><br>
<input type='submit' value='LOG IN'>
</form>";
?>