Jump to content

Recommended Posts

Posted

8elw na kanw to e3hs kai den eiami sigouros pws  :forever alone like a boss:

 

exw ena site x kai 8elw ta idia na exw kai sto site z xoreis na meta8erw ta files apo to x apla na kanei connection me ena index

 

ginetai kati tetoio??  :happyforever:

 

Posted
se auto leei pws na to kanw sto idio hosting se 3 diaforetika domains egw 8elw na mhn exoun kamia sxesh dld ph. na valw mysite.com kai na vgazei oti exei to maxcheaters ena paradeigma   :happyforever: :happyforever:

 

 

to vrhka

 

 

<iframe src="http://maxcheaters.com/" width="100%" height="100%" frameborder="0"></iframe>

 

allo pws tha to kanw wste otan patane deksi click na doune ton kwdika na min exei tpt (opws ginontai me ta <?php ?> )

Posted

απλα κανε ενα αρχειο π.χ. code.html και κανε στο insert απο το index.html ετσι ο αλλος δεν θα μπορει να δει το code.html

Posted

απλα κανε ενα αρχειο π.χ. code.html και κανε στο insert απο το index.html ετσι ο αλλος δεν θα μπορει να δει το code.html

to exw kanei auto kai pali fainetai omws :) anyway kati allo twra

 

exw ftia3ei mexri twra 2 code kai sto localhost einai komple, otan omws to vazw se hosting(free/premium) den mou vgainoun merika errors/messages....

 

evala kai captcha se ena apo auta kai den vlepw dia9ora mipos kanw tpt la9os??

 

diete mia to code:

 

<center>
<?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 address';
      }
       if (ctype_alpha($name) === false) {
          $errors[] = 'Name must only contain letters!';
      }
   }
   
   if (empty($errors)  === true) {
       mail('vl4d@live.com', 'Contact form', $message, 'From: ' . $email);
      header('Loacation: index.php?sent');
      exit();
   }
}
?>

<!DOCTYPE HTML>
<html>
    <head>
        <title>A contact form</title>
    </head>
    <body>
       <?php
      if (isset($_GET['sent']) === true) {
          echo '<p>Thanks for contacting us!</p>';
      } else {
          if (empty($errors) === false) {
              echo '<ul>';
             foreach($errors as $error) {
                 echo '<li>', $error, '</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>
            <script type="text/javascript"
                src="http://www.google.com/recaptcha/api/challenge?k=6LeINeISAAAAAGSTCeblKClH3TWZ2S292ClPIliV">
                </script>
                <noscript>
                    <iframe src="http://www.google.com/recaptcha/api/noscript?k=6LeINeISAAAAAGSTCeblKClH3TWZ2S292ClPIliV"
                        height="300" width="500" frameborder="0"></iframe><br>
                    <textarea name="recaptcha_challenge_field" rows="3" cols="40">
                    </textarea>
                    <input type="hidden" name="recaptcha_response_field"
                        value="manual_challenge">
                </noscript>
              <p>
                 <input type="submit" value="Submit">
             </p>
          </form>
      <?php
      }
      ?>
    </body>
</html>
</center>

kante ena test (captcha/// kai to msg send "Thanks for contacting us!").

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock