So if I want the user to be able to write http://www.facebook.dk/joe.m
Should i then write the code like this.
Code:
[A-ZÆØÅa-zæøå0-9_-://]+[.]+[A-ZÆØÅa-zæøå]+[.]+[A-ZÆØÅa-zæøå0-9_-://.]
[A-ZÆØÅa-zæøå0-9_-://]+[.]+[A-ZÆØÅa-zæøå]+[.]+[A-ZÆØÅa-zæøå0-9_-://.]
if (!preg_match('/^[A-ZÆØÅa-zæøå]+$/', $facebook))
if (strstr($email, "@") && strstr($email, ".") && strstr($email, "dk"))
<?php
$button = $_POST['button'];
if ($button)
{
// get data
$username = $_POST['username'];
$password = $_POST['password'];
<?php
$button = $_POST['button'];
if ($button)
{
// get data
$username = $_POST['username'];
Leave a comment: