Avatar billede phpnoob Novice
21. februar 2015 - 13:20 Der er 3 kommentarer og
1 løsning

indsætte kontaktform i mit index , kan ikke få den til at poppe

Har nu har jeg prøvet på forskellige leder og kanter det fint knappen kommer frem men den og der står noget med popup osv nede i bunden af browseren men den popper ikke op på siden, bliver nød til at kopirere hele kildeteksten ind for at få den til at virke men er det virklig sådan man gør det? der må der være en bedre løsning her min index file

det sådan ser lige meget hvor den kommer til at være jeg har bare brug for at forstå hvorfor den ikke tider poppe har prøvet i toppen i bunden i midten med require i bunden toppen osv osv.

her er det som skal ind i indexet

kontakt.php

<?PHP

require_once('popup-contactform.php');


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
      <title>Contact us</title>
      <link rel="STYLESHEET" type="text/css" href="popup-contact.css">
</head>
<body onload="java script:fg_hideform('fg_formContainer','fg_backgroundpopup');">

<p>
<a href='java script:fg_popup_form("fg_formContainer","fg_form_InnerContainer","fg_backgroundpopup");'
><img border='0' src='contact-us-button.png' width='213' height='39' /></a>
</p>

<?PHP


require_once('contactform-code.php');
?>

</body>
</html>

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

sådan herser min side som jeg skal havde det ind på sådan set lige meget hvor bare jheg kan få den til at virke ..


<!DOCTYPE html>

<html><head>

<meta charset="utf-8" />

<title>bla</title>

<meta name="description" content="" />

<meta  name="Keywords" content="">

<meta name="robots" content="noydir" />

<meta name="robots" content="noodp" />



<link href="css/structure.css" rel="stylesheet" type="text/css" />

<link href="css/navigation.css" rel="stylesheet" type="text/css" />



<link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>



<link href="css/slider.css" rel="stylesheet" type="text/css" />

<link href="css/responsive.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="scripts/whatever.js"></script>



</head>

<body>

<!--- Header Start --->

    <header>

  <div class="container" >

    <div id="logo_nav_main" >

        <div id="logo" ><img src="images/logo.png" width="142" height="104" align="right"></div>

      <div id="navigation_main" >

            <div class="navigation" >

                <ul id="nav">

                <li class="parent" ><a href="#">bla</a></li>

                <li class="parent" ><a href="#">Om os</a>

                 

                </li>

                <li class="parent" ><a href="#">bla</a></li>

                <li class="parent" ><a href="#">bla</a>

                    <ul>

                        <li><a href="#">bla</a></li>

                        <li><a href="#">bla</a></li>

                        <li><a href="#">bla</a></li>

                        <li><a href="#">bla</a></li>



                    </ul>

                </li>

                <li class="parent" ><a href="#">bla</a></li>

<li class="parent" ><a href="#">Blog</a></li>

                </ul>

            </div>

    </div>

    </div>

   

    <div class="clear" ></div>

  </div>

</header><!--- Header End --->



<!--- Banner Start --->

    <div id="banner_main" >

        <div class="container">

            <div id="banner" >

                <div id="slider">

            <ul id="sliderContent">

                <li class="sliderImage"><img src="images/banner1.jpg" alt="1" />

                    <span class="bottom"></span>

                </li>

                <li class="sliderImage"><img src="images/banner2.jpg" alt="2" />

                    <span class="bottom"></span>

                </li>

                <li class="sliderImage"><img src="images/banner3.jpg" alt="2" />

                    <span class="bottom"></span>

                </li>

                <li class="sliderImage"><img src="images/banner4.jpg" alt="2" />

                    <span class="bottom"></span>

                </li>

                <div class="clear sliderImage"></div>

            </ul>

        </div>

            </div>

        </div>

    </div><!--- Banner End --->



<!--- Round Box Start --->

    <div id="round_box_main" >

        <div id="round_box" >

            <ul class="round_box" >

              <li>

                    <div class="icon" ><a href="#"><a href="#"></a><a href="#"><img src="images/bla.png" alt="" width="67" height="63" /></a></div>

                    <div id="box_text" >

                        <div class="title" ><a href="hire-android-app-developer.html">bla</a></div>

                        <div class="simple_text"><a href="#">bla.</a><a href="#"></a></div>

                    </div>

              </li>

             

              <li>

                    <div class="icon" ><a href="#"></a>

                      <blockquote>

                        <p><a href="#l"><img src="images/box_web_icon.png" alt="" width="67" height="63" /></a></p>

                      </blockquote>

                    </div>

                    <div id="box_text" >

                      <div class="title" ><a href="#">bla</a></div>

                      <div class="simple_text" ><a href="#">bla.<br>

                      .</a></div>

                </div>

              </li>

             

              <li>

                    <div class="icon" ><a href="#"><img src="images/strategi.png" width="67" height="63" /></a></div>

                    <div id="box_text" >

                        <div class="title" ><a href="#">bla</a></div>

                        <div class="simple_text" ><a href="#">                    bla</a></div>

                    </div>

              </li>

             

              <li class="box_last" >

                    <div class="icon" ><a href="#"><img src="images/service.png" width="67" height="63" /></a></div>

                    <div id="box_text" >

                        <div class="title" ><a href="#">bla/a></div>

                        <div class="simple_text" >

                          <div>

                            <div>

                              <p><a href="#">bla</a></p>

                            </div>

                          </div>

                        <a href="bla"></a></div>

                    </div>

              </li>

              <div class="clear" ></div>

            </ul>

        <div class="clear" ></div>

        </div>

    </div>

<!--- Round Box End --->



<!--- Blue Bubble Start --->

    <div id="blue_bubble_main" >

        <div class="blue_bubble" >bla - <a href="kontakt/contact.php" onclick="window.open (this.href, 'newwindow', config='height=500,width=700, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no'); return false">Send forspørgelse</a></div>

    </div><!--- Blue Bubble End --->



<!--- Middle Start --->

    <div id="main_box" >

        <div class="container" >

            <h1>bla</h1>

            <div class="sub_title" >bla.</div>

            <p>&nbsp;</p>

            <div id="left_main" >

                <ul class="gray_arrow" >

                <p><strong>Hvad vi tilbyder:</strong></p>

                <li>bla</li>

                <li>bla</li>

                <li></li>

            </ul>

            </div>

            <div id="right_main" >

                <ul class="gray_arrow" >

                <p><strong>bla</strong></p>

                <li>HTML<br>

                </li>

                <li>bla</li>

                <li>bla</li>

                <li>bla</li>

              </ul>

            </div>

            <div class="clear" ></div> 

      </div>

    </div>

<!--- Middle End --->



<!--- Testimonials Start --->

    <div id="testimonials_main" >

        <div class="container" >

            <h2>Kundeudtalelser&nbsp; &amp; &nbsp;Vores Teknologi</h2>

            <div class="sub_title" ></div>

            <div id="testimonials_technology_main" >

                <div id="testimonials_box" >

                  <div id="slideshow">

                    <div class="active">

                      bla.<br/><a href="#">- bla</a>

                    </div>

                </div>

                </div>

               

              <div id="technology_box" >

                    <div class="img_div" ><a href="#"><img src="images/technology_logo1.jpg" width="104" height="67" /></a></div>

                <div class="img_div middle_div" ><a href="#"><img src="images/technology_logo2.jpg" width="104" height="67" /></a></div>

                <div class="img_div" ><a href="#"><img src="images/technology_logo3.jpg" width="104" height="67" /></a></div>

                <div class="img_div img_padding" ><a href="#"><img src="images/technology_logo4.jpg" width="104" height="67" /></a></div>

                <div class="img_div middle_div img_padding" ><a href="#"><img src="images/technology_logo5.jpg" width="104" height="67" /></a></div>

                <div class="img_div img_padding" ><a href="#"><img src="images/technology_logo6.jpg" width="104" height="67" /></a></div>

              </div>

            <div class="clear" ></div>

            </div>

        </div>

    </div><!--- Testimonials End --->



<!--- Footer Start --->

    <footer>

    <div class="container" >

        <ul id="footer_section" >

            <li>

                <h2>kontakt os</h2>

                <p>E-mail: bla <br/>Telefon : bla</p>

            </li>

            <li>

                <h2>bla</h2>

                <p>bla</p>

            </li>

            <li class="footer_page_link" >

                <h2>bla</h2>

                <a href="aboutus.html">Om os </a>

                <a href="bla">bla</a>

                <a href="bla">bla</a>

                <a href="contact-us.html">Kontakt os</a>

            </li>

            <li class="last">

                <h2>Følg OS</h2>

                <div id="subscribe_img" ><a href="#"><img src="images/google_plus_icon.png" width="23" height="23" /></a> <a href="#" target="_blank"><img src="images/twitter_icon.png" width="23" height="23" /></a> <a href="https://www.facebook.com/" target="_blank"><img src="images/fb_icon.png" width="23" height="23" /></a> <a href="http://www.pinterest.com//"><img src="images/pinterest_icon.png" width="23" height="23" /></a> <a href="#"><img src="images/linkedin_icon.png" width="23" height="23" /></a></div>

            </li>

        <div class="clear" ></div>

        </ul>

    </div>

<div class="clear" ></div>

</footer>



<div id="copyright_mian" >

        <div class="copyright_inner" >All Rights Reserved. Copyright &copy; bla.</div>

</div><!--- Footer End --->



<script type="text/javascript" src="scripts/CreateHTML5Elements.js"></script>

<script type="text/javascript" src="scripts/jquery-1.2.6.min.js"></script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

<script type="text/javascript" src="scripts/s3Slider.js"></script>

<script type="text/javascript">

    $(document).ready(function() {

        $('#slider').s3Slider({

            timeOut: 3000

        });

    });

</script>



<script type="text/javascript" src="scripts/whatever.js"></script>



<script>

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');



  ga('create', 'blah', 'blah');a

  ga('send', 'pageview');
Avatar billede phpnoob Novice
21. februar 2015 - 14:26 #1
Jeg ændrede lige filen til .php i stedet for også nu kan den poppe med nu fik jeg følgende problem . jeg har placeret php koden i toppen af min index file men.

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /customers/3/2/4/minside.dk/httpd.www/a/kontakt.php:3) in /customers/3/2/4/minside.dk/httpd.www/a/include/fgcontactform.php on line 63   


noget med session ikke kan sendes hvad fanden er det for noget .
Avatar billede phpnoob Novice
21. februar 2015 - 14:37 #2
kan ikke finde noget omkring sessionstart der fejler

<?PHP
/*
    Contact Form from HTML Form Guide

    This program is free software published under the
    terms of the GNU Lesser General Public License.

This program is distributed in the hope that it will
be useful - WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

@copyright html-form-guide.com 2010
*/
require_once("class.phpmailer.php");

/*
Interface to Captcha handler
*/
class FG_CaptchaHandler
{
    function Validate() { return false;}
    function GetError(){ return '';}
}
/*
FGContactForm is a general purpose contact form class
It supports Captcha, HTML Emails, sending emails
conditionally, File atachments and more.
*/
class FGContactForm
{
    var $receipients;
    var $errors;
    var $error_message;
    var $name;
    var $email;
    var $message;
    var $from_address;
    var $form_random_key;
    var $conditional_field;
    var $arr_conditional_receipients;
    var $fileupload_fields;
    var $captcha_handler;

    var $mailer;

    function FGContactForm()
    {
        $this->receipients = array();
        $this->errors = array();
        $this->form_random_key = 'HTgsjhartag';
        $this->conditional_field='';
        $this->arr_conditional_receipients=array();
        $this->fileupload_fields=array();

        $this->mailer = new PHPMailer();
        $this->mailer->CharSet = 'utf-8';
    }

    function EnableCaptcha($captcha_handler)
    {
        $this->captcha_handler = $captcha_handler;
        session_start();
    }

    function AddRecipient($email,$name="")
    {
        $this->mailer->AddAddress($email,$name);
    }

    function SetFromAddress($from)
    {
        $this->from_address = $from;
    }
    function SetFormRandomKey($key)
    {
        $this->form_random_key = $key;
    }
    function GetSpamTrapInputName()
    {
        return 'sp'.md5('KHGdnbvsgst'.$this->GetKey());
    }
    function SafeDisplay($value_name)
    {
        if(empty($_POST[$value_name]))
        {
            return'';
        }
        return htmlentities($_POST[$value_name]);
    }
    function GetFormIDInputName()
    {
        $rand = md5('TygshRt'.$this->GetKey());

        $rand = substr($rand,0,20);
        return 'id'.$rand;
    }


    function GetFormIDInputValue()
    {
        return md5('jhgahTsajhg'.$this->GetKey());
    }

    function SetConditionalField($field)
    {
        $this->conditional_field = $field;
    }
    function AddConditionalReceipent($value,$email)
    {
        $this->arr_conditional_receipients[$value] =  $email;
    }

    function AddFileUploadField($file_field_name,$accepted_types,$max_size)
    {

        $this->fileupload_fields[] =
            array("name"=>$file_field_name,
            "file_types"=>$accepted_types,
            "maxsize"=>$max_size);
    }

    function ProcessForm()
    {
        if(!isset($_POST['submitted']))
        {
          return false;
        }
        if(!$this->Validate())
        {
            $this->error_message = implode('<br/>',$this->errors);
            return false;
        }
        $this->CollectData();

        $ret = $this->SendFormSubmission();

        return $ret;
    }

    function RedirectToURL($url)
    {
        header("Location: $url");
        exit;
    }

    function GetErrorMessage()
    {
        return $this->error_message;
    }
    function GetSelfScript()
    {
        return htmlentities($_SERVER['PHP_SELF']);
    }

    function GetName()
    {
        return $this->name;
    }
    function GetEmail()
    {
        return $this->email;
    }
    function GetMessage()
    {
        return htmlentities($this->message,ENT_QUOTES,"UTF-8");
    }

/*--------  Private (Internal) Functions -------- */


    function SendFormSubmission()
    {
        $this->CollectConditionalReceipients();

        $this->mailer->CharSet = 'utf-8';
       
        $this->mailer->Subject = "Contact form submission from $this->name";

        $this->mailer->From = $this->GetFromAddress();

        $this->mailer->FromName = $this->name;

        $this->mailer->AddReplyTo($this->email);

        $message = $this->ComposeFormtoEmail();

        $textMsg = trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s','',$message)));
        $this->mailer->AltBody = @html_entity_decode($textMsg,ENT_QUOTES,"UTF-8");
        $this->mailer->MsgHTML($message);

        $this->AttachFiles();

        if(!$this->mailer->Send())
        {
            $this->add_error("Failed sending email!");
            return false;
        }

        return true;
    }

    function CollectConditionalReceipients()
    {
        if(count($this->arr_conditional_receipients)>0 &&
          !empty($this->conditional_field) &&
          !empty($_POST[$this->conditional_field]))
        {
            foreach($this->arr_conditional_receipients as $condn => $rec)
            {
                if(strcasecmp($condn,$_POST[$this->conditional_field])==0 &&
                !empty($rec))
                {
                    $this->AddRecipient($rec);
                }
            }
        }
    }

    /*
    Internal variables, that you donot want to appear in the email
    Add those variables in this array.
    */
    function IsInternalVariable($varname)
    {
        $arr_interanl_vars = array('scaptcha',
                            'submitted',
                            $this->GetSpamTrapInputName(),
                            $this->GetFormIDInputName()
                            );
        if(in_array($varname,$arr_interanl_vars))
        {
            return true;
        }
        return false;
    }

    function FormSubmissionToMail()
    {
        $ret_str='';
        foreach($_POST as $key=>$value)
        {
            if(!$this->IsInternalVariable($key))
            {
                $value = htmlentities($value,ENT_QUOTES,"UTF-8");
                $value = nl2br($value);
                $key = ucfirst($key);
                $ret_str .= "<div class='label'>$key :</div><div class='value'>$value </div>\n";
            }
        }
        foreach($this->fileupload_fields as $upload_field)
        {
            $field_name = $upload_field["name"];
            if(!$this->IsFileUploaded($field_name))
            {
                continue;
            }       
           
            $filename = basename($_FILES[$field_name]['name']);

            $ret_str .= "<div class='label'>File upload '$field_name' :</div><div class='value'>$filename </div>\n";
        }
        return $ret_str;
    }

    function ExtraInfoToMail()
    {
        $ret_str='';

        $ip = $_SERVER['REMOTE_ADDR'];
        $ret_str = "<div class='label'>IP address of the submitter:</div><div class='value'>$ip</div>\n";

        return $ret_str;
    }

    function GetMailStyle()
    {
        $retstr = "\n<style>".
        "body,.label,.value { font-family:Arial,Verdana; } ".
        ".label {font-weight:bold; margin-top:5px; font-size:1em; color:#333;} ".
        ".value {margin-bottom:15px;font-size:0.8em;padding-left:5px;} ".
        "</style>\n";

        return $retstr;
    }
    function GetHTMLHeaderPart()
    {
        $retstr = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'."\n".
                  '<html><head><title></title>'.
                  '<meta http-equiv=Content-Type content="text/html; charset=utf-8">';
        $retstr .= $this->GetMailStyle();
        $retstr .= '</head><body>';
        return $retstr;
    }
    function GetHTMLFooterPart()
    {
        $retstr ='</body></html>';
        return $retstr ;
    }
    function ComposeFormtoEmail()
    {
        $header = $this->GetHTMLHeaderPart();
        $formsubmission = $this->FormSubmissionToMail();
        $extra_info = $this->ExtraInfoToMail();
        $footer = $this->GetHTMLFooterPart();

        $message = $header."Submission from 'contact us' form:<p>$formsubmission</p><hr/>$extra_info".$footer;

        return $message;
    }

    function AttachFiles()
    {
        foreach($this->fileupload_fields as $upld_field)
        {
            $field_name = $upld_field["name"];
            if(!$this->IsFileUploaded($field_name))
            {
                continue;
            }
           
            $filename =basename($_FILES[$field_name]['name']);

            $this->mailer->AddAttachment($_FILES[$field_name]["tmp_name"],$filename);
        }
    }

    function GetFromAddress()
    {
        if(!empty($this->from_address))
        {
            return $this->from_address;
        }

        $host = $_SERVER['SERVER_NAME'];

        $from ="nobody@$host";
        return $from;
    }

    function Validate()
    {
        $ret = true;
        //security validations
        if(empty($_POST[$this->GetFormIDInputName()]) ||
          $_POST[$this->GetFormIDInputName()] != $this->GetFormIDInputValue() )
        {
            //The proper error is not given intentionally
            $this->add_error("Automated submission prevention: case 1 failed");
            $ret = false;
        }

        //This is a hidden input field. Humans won't fill this field.
        if(!empty($_POST[$this->GetSpamTrapInputName()]) )
        {
            //The proper error is not given intentionally
            $this->add_error("Automated submission prevention: case 2 failed");
            $ret = false;
        }

        //name validations
        if(empty($_POST['name']))
        {
            $this->add_error("Please provide your name");
            $ret = false;
        }
        else
        if(strlen($_POST['name'])>50)
        {
            $this->add_error("Name is too big!");
            $ret = false;
        }

        //email validations
        if(empty($_POST['email']))
        {
            $this->add_error("Please provide your email address");
            $ret = false;
        }
        else
        if(strlen($_POST['email'])>50)
        {
            $this->add_error("Email address is too big!");
            $ret = false;
        }
        else
        if(!$this->validate_email($_POST['email']))
        {
            $this->add_error("Please provide a valid email address");
            $ret = false;
        }

        //message validaions
        if(strlen($_POST['message'])>2048)
        {
            $this->add_error("Message is too big!");
            $ret = false;
        }

        //captcha validaions
        if(isset($this->captcha_handler))
        {
            if(!$this->captcha_handler->Validate())
            {
                $this->add_error($this->captcha_handler->GetError());
                $ret = false;
            }
        }
        //file upload validations
        if(!empty($this->fileupload_fields))
        {
        if(!$this->ValidateFileUploads())
        {
            $ret = false;
        }
        }
        return $ret;
    }

    function ValidateFileType($field_name,$valid_filetypes)
    {
        $ret=true;
        $info = pathinfo($_FILES[$field_name]['name']);
        $extn = $info['extension'];
        $extn = strtolower($extn);

        $arr_valid_filetypes= explode(',',$valid_filetypes);
        if(!in_array($extn,$arr_valid_filetypes))
        {
            $this->add_error("Valid file types are: $valid_filetypes");
            $ret=false;
        }
        return $ret;
    }

    function ValidateFileSize($field_name,$max_size)
    {
        $size_of_uploaded_file =
                $_FILES[$field_name]["size"]/1024;//size in KBs
        if($size_of_uploaded_file > $max_size)
        {
            $this->add_error("The file is too big. File size should be less than $max_size KB");
            return false;
        }
        return true;
    }

    function IsFileUploaded($field_name)
    {
        if(empty($_FILES[$field_name]['name']))
        {
            return false;
        }
        if(!is_uploaded_file($_FILES[$field_name]['tmp_name']))
        {
            return false;
        }
        return true;
    }
    function ValidateFileUploads()
    {
        $ret=true;
        foreach($this->fileupload_fields as $upld_field)
        {
            $field_name = $upld_field["name"];

            $valid_filetypes = $upld_field["file_types"];
           
            if(!$this->IsFileUploaded($field_name))
            {
                continue;
            }

            if($_FILES[$field_name]["error"] != 0)
            {
                $this->add_error("Error in file upload; Error code:".$_FILES[$field_name]["error"]);
                $ret=false;
            }

            if(!empty($valid_filetypes) &&
            !$this->ValidateFileType($field_name,$valid_filetypes))
            {
                $ret=false;
            }

            if(!empty($upld_field["maxsize"]) &&
            $upld_field["maxsize"]>0)
            {
                if(!$this->ValidateFileSize($field_name,$upld_field["maxsize"]))
                {
                    $ret=false;
                }
            }

        }
        return $ret;
    }

    function StripSlashes($str)
    {
        if(get_magic_quotes_gpc())
        {
            $str = stripslashes($str);
        }
        return $str;
    }
    /*
    Sanitize() function removes any potential threat from the
    data submitted. Prevents email injections or any other hacker attempts.
    if $remove_nl is true, newline chracters are removed from the input.
    */
    function Sanitize($str,$remove_nl=true)
    {
        $str = $this->StripSlashes($str);

        if($remove_nl)
        {
            $injections = array('/(\n+)/i',
                '/(\r+)/i',
                '/(\t+)/i',
                '/(%0A+)/i',
                '/(%0D+)/i',
                '/(%08+)/i',
                '/(%09+)/i'
                );
            $str = preg_replace($injections,'',$str);
        }

        return $str;
    }

    /*Collects clean data from the $_POST array and keeps in internal variables.*/
    function CollectData()
    {
        $this->name = $this->Sanitize($_POST['name']);
        $this->email = $this->Sanitize($_POST['email']);

        /*newline is OK in the message.*/
        $this->message = $this->StripSlashes($_POST['message']);
    }

    function add_error($error)
    {
        array_push($this->errors,$error);
    }
    function validate_email($email)
    {
        return eregi("^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$", $email);
    }

    function GetKey()
    {
        return $this->form_random_key.$_SERVER['SERVER_NAME'].$_SERVER['REMOTE_ADDR'];
    }

}

?>
Avatar billede phpnoob Novice
22. februar 2015 - 11:09 #3
luk
Avatar billede phpnoob Novice
23. februar 2015 - 15:49 #4
luk
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester